On Thu, 2003-07-24 at 03:29, Robert Fausey wrote: > 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 <jdk.sh> #!/bin/bash CLASSPATH=/usr/java/jdk1.3.1/lib:/usr/java/jdk1.3.1/lib/tools.jar: /usr/java/jdk1.3.1/lib/dt.jar:/usr/java/jdk1.3.1/jre/lib/rt.jar: /usr/java/jdk1.3.1/lib/mail.jar:/usr/java/jdk1.3.1/lib/activation.jar: /usr/java/jdk1.3.1/jre/lib/i18n.jar:/usr/java/jdk1.3.1/jre/lib/javaplugin.jar: /usr/java/jdk1.3.1/jre/lib/sunrsasign.jar PATH="$PATH:/usr/java/jdk1.3.1/bin" export PATH CLASSPATH </jdk.sh> The above is what is there in my jdk.sh or java.sh in your case. You will have to change the version to suit you. I think your problem is that CLASSPATH variable is not defined in your java.sh. since you are getting the NoClassDefFoundError. If you define the CLASSPATH variable with the proper jar files then everything should be ok. bye, -- Arindam Dey The mind is not a vessel to be filled but a fire to be kindled. GPG FPR: B8E3 219E F129 F970 F4A7 BC50 9636 504A BEDF 5739 -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list