Hi friends,I would recommend that you nuke the jdkgcj if you are using the sun jdk - oh and why not use the current sun jdk, which is version 1.4.2 - working like a champ here.
I am trying to run Sun's Java on my Machine.
I downloaded
j2sdk-1_4_1_03-linux-i586.bin and then chmod 777 and
then ran ./j2......bin
finally it extracted j2sdk1.4.1_03 in my /usr/local
directory.
Now when I go to /usr/local/j2sdk1.4.1_03/bin as superuser and write a
java file and compile using javac
javac abc.java
java abc
it runs fine. But when I add a paths,classpath or
without adding paths,classpath try to compile and run
same files
from any other directory like: /root like this:
/usr/local/j2sdk1.4.1_03/bin/javac abc.java it compiles fine /usr/local/j2sdk1.4.1_03/bin/java abc
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: testing
As I use Red Hat 9 I have another java /usr/bin/java
[root@xxxxxxxxx root]# java -version java version "1.3.1" jdkgcj 0.2.3 (http://www.arklinux.org/projects/jdkgcj) gcj (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
So may be there is some interference with this java.
I really fail to understand that.
Earlier I had set path like this in /etc/profile.d/java.sh
JAVA_HOME=/usr/local/j2sdk1.4.1_03 PATH=$JAVA_HOME/bin:$PATH CLASSPATH=$JAVA_HOME/lib:$CLASSPATH export JAVA_HOME PATH CLASSPATH
But after I ran the above script I was getting the same error in this directory also
/usr/local/j2sdk1.4.1_03/bin/
Someone any suggestions?
Joe
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list