Originally posted by leandro oliveira:
I'm using windows XP and j2sdk 1.4. when I compile the program the class file is created but when I run it NoClassDefFoundError is thrown!!! can anyone help me??? Which operational system do you think is better and reliable to use for certification porpuse???
Thanks in advance!!!
It sounds like your system can find the java.exe file (which it needs to run any Java application), but it can't find the file you're trying to run. Ensure that your class file can be found on the classpath - you can edit your classpath by going to "My Computer Properties"->Advanced Tab->Environment Variables Button.
Inside that window, ensure that your classpath is set to include the directory where your .class file resides (or, if your class is within a package other than the default package, the root of that hierarchy).
Just on a side note, I'm currently running Java 1.4 on Windows XP and have no problems, so there is not an issue with Java on that platform.
Corey