Quote:
# Fix the CLASSPATH variable if, when running the code, you see a message like this one:
Exception in thread "main" java.lang.NoClassDefFoundError: MyHelloWorld
To set the CLASSPATH variable:
* Go to the Control Panel/System
* Change to the "Advanced" tab
* Click the button "Environment Variable" at the bottom of the dialog box
* Select CLASSPATH and click Edit
* Locate the "Variable Value" field. Add the following text at the end
;.
The semicolon is a separator and the . tells the JVM to look for classes in your current directory.
From: