>>>>> Emmanuel Papirakis writes:
>> /usr/local/jdk117_v1a/bin
>> [muster@192 bin]$ javac
>> ./java: error in loading shared libraries:
>> libjava.so: cannot open shared object file: No such
>> file or directory
Emmanuel> I agree with you when you say that the CLASSPATH and
Emmanuel> the JAVA_HOME variables are now obsolete. BUT, you
Emmanuel> still must either put your libjava.so in a directory
Emmanuel> that is either in your LD_LIBRARY_PATH variable, or in
Emmanuel> /etc/ld.so.conf.
Emmanuel> If you want to keep your libjava.so where it is now,
Emmanuel> you must add the directory to you LD_LIBRARY_PATH
Emmanuel> variable, or to /etc/ld.so.conf and (as root) typy the
Emmanuel> command /sbin/ldconfig.
No this isn't necessary, the java wrapper script sets up
LD_LIBRARY_PATH properly itself.
libjava.so: cannot open shared object file: No such file or directory
^
This colon indicates that libjava.so actually has been found. But a
library libjava.so depends couldn't be found. In most cases this
means that the glibc version doesn't match the JDK version.
This command should show what exactly was missing:
$ DEBUG_PROG=ldd java
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]