I have installed j2sdk1.4.1 and JBuilder which uses jdk1.3.1. I make te hello world program an save it at my jdk141> bin Hello.java why when i try to compile I got the error java.lang.NoClassDefFoundError * the path is well set up cause when I execute java -version from any where I got: java version 'jdk 1.4.1' ..........
Usually you get this error when you try to run the program, not when you compile it. Are you compiling at the command line? C:\>javac Hello.java ??
By the way, I suggest that you pick a different subdirectory to put your source files in. The bin subdirectory of the jdk should be kept only for the files that came with the jdk.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
From exactly what directory are you typing exactly what command and exactly where is the source file and what are your classpath and path settings (exactly)?
hi, it's probably your JDK version. I had the same problem until I changed the jdk version to 1.4 This is only my thought on what could be wrong, the previous posts have valid questions and responses. good luck