"Path" contains all the binary files of the commands you use to compile the program or to run the program,for example javac and java etc.. "Class path" contains all the classes or packages which you import in your java file, like java.util,java.lang packages etc.
Originally posted by Rob Hunter: All that did was type %CLASSPATH% on the next line. Anything else I can try? Thanks.
You may be aware of setting the Environment Variable in Windows. However, let me walk you through the procedure to set the CLASSPATH Environment Variable.
1. Right click "My Computer" icon on your desktop (or goto Start-> Control Panel -> System) 2. Select "Properties" on the context menu 3. Click "Advanced" tab on the System Properties box 4. Click "Environment Variables" button at the bottom 5. Click "New" button under "System variables" 6. In the "New System Variable" box: a) type classpath in the "Variable name" text box b) type your javaroot installation path with \lib e.g., c:\jdk1.5.0_10\lib; 7. Click "OK"
All the knowledge that the world has ever received comes from the mind; the infinite library of the universe is in your own mind - Swami Vivekananda