Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On 64-bit RHEL5 running Java 1.6.0 update 16, root can successfully run a Java program but a user can't because supposedly can't be found. SELinux is turned off and the environment is the same before the program is run. I've tried putting in the LD_LIBRARY_PATH but it doesn't make a difference.

How do I fix this error?

share|improve this question
up vote 6 down vote accepted

The first possibility that springs to mind is that is readable only by root. So step one:

ls -l $(locate

If it's in an odd location (not in /usr/lib or /lib) create the file /etc/ containing the path to the directory containing and run /sbin/ldconfig as root.

For more troubleshooting info, run this command, once as root and once as a non-root user:

ldd java

In a sane world, the output of the two would be identical. How they differ should tell you a lot about why this is failing.

share|improve this answer
Sheesh, I had set LD_LIBRARY_PATH, I thought ldconfig's conf would be fruitless. ldd java returns a relative path containing '..' for libjli, I guess that didn't work out as the packagers hoped for this particular Java 1.6.0 update 16 FCS client. – joeforker Aug 24 '09 at 19:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.