I have a jar file, which works in many machines. However we just asked for a new unix user to install it, and it is not behaving the same... wonder if it could be anything related to some env. var.
the basic idea is:
WorkingUser@box$ java -jar install.jar -h [output help instructions]
NewUser@box$ java -jar install.jar -h The java class is not found: pkg1.pkg2.pkg3.Loader
Before anyone asks, there is no classpath needed and yes, the cksum for the jar is ok. in fact:
$ jar tf install.jar META-INF/ META-INF/MANIFEST.MF pkg1/ pkg1/pkg2/ pkg1/pkg2/pkg3/ pkg1/pkg2/pkg3/script/ pkg1/pkg2/pkg3/Loader.class pkg1/pkg2/pkg3/LoaderHelper.class package.jar
And you can figure that the
MANIFEST.MF is fine, since it works in other users.
I have tried executing with
-cp install.jar with no success. Also the
$CLASSPATH for working and not working users contains only "
I seem to have found more weird things on this new user. There are few other things not working which may indicate a problem with the user creation. Unfortunately I don't know to much of user administration in AIX, so I hope you guys can help me to figure out from these leads;
I have just found that simple
tar cannot be created into this user's home.
NewUser@box$ echo "thisisatest" > testfile.txt NewUser@box$ tar cf testfile.txt.tar testfile.txt tar: The getwd subroutine failed. Cannot open the parent directory. NewUser@box$ ls -l testfile* -rw-r----- 1 user group 12 Feb 08 14:15 testfile.txt -rw-r----- 1 user group 0 Feb 08 14:15 testfile.txt.tar
testfile.txt.tar has 0 bytes?)
Needless to say, all these commands works on the other user.
Apart from that, there's another small symptom regards connecting with
The connection wont work yielding the following error at first:
To correct this error, I simply have to configure
remote path in WinScp's configuration (which apparently defines the path to the user home) and it will work fine.
I use WinScp in the other server and it works just fine without any configuration - I ignored this error at first, but now seems more relevant.
/etc/passwd has all the correct parameters for this user. It might be some dodgier configuration...
Also, the home folder has all the correct permissions - I'm not to sure how that "sticky bit" relates to it, but.. well..
Thanks in advance!