[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JDK 1.3 installation problem



>I downloaded the j2sdk rpm from sun website and tried to install the 
>package. I could install it but when I tried to check it using
>java -version
>it is giving an error
>/usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such file or directory

Hmmm, this is strange.  Do an "ls -l /usr/bin/cut"... it is there right?  I take it bin/java is a shell script?

>/usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error while loading 
>shared libraries: libjvm.so: cannot load shared object files: No such file 
>or directory

Do an "ldd /usr/java/jdk1.3.0_02/bin/i386/native_threads/java" ... what do you see?  Where is libjvm.so?  You may need to add the JDK library to /etc/ld.so.conf and rerun /sbin/ldconfig, to teel the system where to look to find the libraries.  I would imagine that a well constructed RPM should have done all this for you.

See 
http://www.kalamazoolinux.org/presentations/20001017/img11.htm
http://www.kalamazoolinux.org/presentations/20001017/img12.htm
http://www.kalamazoolinux.org/presentations/20001017/img13.htm
for an explanation of library paths and ldd.

>  I installed jre also. Please help me with the problem.

Did the JDK require the JRE?  Usually JDKs include the JRE.