I just downloaded Java 1.3.1 and successfully installed it on my Jaz drive (D:). I then successfully compiled 2 “Hello World” class files – TestGreeting.java and Greeting.java. They compiled okay. Every time I try to run it in DOS I get an error message indicating that main was unable to find the needed class files: NoClassDefFound error.
I have tried the following with no success:
Set classpath=.;d:\develop\java\files
Made sure that the name I specified with the java command was exactly correct:
“java TestGreeting”
Tried to run this with the files directory as my current directory with the classpath removed.
Verified that the class files exist in the files directory.
I saw another post that suggested thereis a Java bug that causes this error when you install and try to run from a directory other than C.
Can anyone help? I don’t have much hair left to pull out.
Thanks.