Setting Classpath
If you are able to compile java programs but not run java programs and you see a message similar to
Exception in thread main ........
Try setting your classpath variable.
- First get to the the Environment Variables dialog box. See steps 1 - 3 of the Java Setup tutorial at the resource section.
- You want to add a dot and a semicolon before the current classpath setting as shown below.
- Double click on the classpath variable to bring up the Edit System Variable Dialog.
- Insert
.;
before the previous path setting and then click okay several times.