I just downloaded and installed the JDK1.50_06 with net beans 4.1 in Windows XP on a 2.0GHz AMD-64 Machine. I decided to try to write my first
java code in an editor and execute from the command line. I get the error "Exception in
thread "main" java.lang.NoClassDefFoundError:". Supposedly this problem is caused by not having the CLASSPATH set correctly, so I dutifully add . and the full path to the directory where my HelloWorldApp.class file is located to the user and system CLASSPATH environment variables and reboot. The error message is the same. I decide to reboot into SuSE Linux 10.0 where I have installed the linux version of the JDK/IDE into my home directory. I add the appropriate paths to the PATH and CLASSPATH variables in bash.rc w/ export statement (This is where you set Environment Variables for individual users in SuSE 10.0)and reboot. When I try to run the app I get the same error message as in Windows. Any suggestions as to why this might be happening? Is this problem somehow caused by the
IDE?
Thanks for your time.