On Wed, 2003-07-23 at 20: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 Which java command are you running? I would guess from your path setup you are running /usr/bin/java which is giving you the error. Try running both the compile and the execution with explicit paths, eg: /usr/java/j2sdk1.4.2/bin/java <classname>. Keith. -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list