Does "which java" give you the java at /usr/java/.../bin or some other one? If it's the wrong one then you should probably switch that PATH statement around so that the JDK path is searched first.
-Steve -----Original Message----- From: Robert Fausey [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 2:28 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Setting up j2sdk I am having problems getting java programs to run under RH9. I installed j2sdk-1.4.2-fcs and created /etc/profile.d/java.sh that contains export JDK_HOME=/usr/java/j2sdk1.4.2 export PATH=$PATH:$JDK_HOME/bin I can compile Java programs, but they will not run, they run fine on other systems, I keep getting the following error Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld -- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list