Operating System - HP-UX
1827452 Members
3899 Online
109965 Solutions
New Discussion

java -version not working for user

 
Sunil Talreja
Occasional Advisor

java -version not working for user

Runtime.loadLibrary throws incorrect exception
Document Information Table
Runtime.loadLibrary throws incorrect exception DocId: KBRC00014504 Updated: 3/26/04 4:10:00 PM

PROBLEM
When doing a simple "java -version" one user got this error:

$ ./java -version


****************
Another exception has been detected while we were handling last
error. Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = c42227cb
SIGNAL = 11
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = (N/A)
Please check ERROR REPORT FILE for further information, if there
is any. Good bye. Abort

But other users are able to run java fine.
Why is this error occurring only with some users?
2 REPLIES 2
Sunil Talreja
Occasional Advisor

Re: java -version not working for user

RESOLUTION

The JVM will try to create or open a directory named
/var/tmp/hsperfdata_myuser where myuser is the name of the user running the JVM. (In my case it was /var/tmp/hsperfdata_pipeuser)

Once the directory is open, the JVM will try to create a work file in that directory.

This error will occur if the user "myuser" launches the JVM and the directory /var/tmp/hsperfdata_myuser already exists, but myuser does not have read/write permission to that directory. The JVM create/write to the new work file will fail and will cause the JVM to generate the error
message.

To correct the problem, the directory /var/tmp/hsperfdata_myuser
should be removed and/or the permissions of the hsperfdata_myuser directory should be modified to allow read/write access to that directory for myuser.

I my case I just deleted directory called /var/tmp/hpperfdata_pipeuser and problem was resolved.
Sunil Talreja
Occasional Advisor

Re: java -version not working for user

See Solution above