Changing PATH and CLASSPATH

Published on 4 Jul 2007 at 11:39 pm. No Comments.
Filed under Programming, Solutions.

I can never remember how to change my PATH and CLASSPATH on the various computers I use.  Recently, I had to do this again on my Windows XP system, and decided to store this memory in my Online Cortex.

To change PATH and/or CLASSPATH on Windows XP:

1. Go to the Control Panel
2. Select System
3. On the System window, select the Advanced tab
4. Click on the Environment Variables button at the bottom of the window

5. The PATH can be edited in the User Variables at the top
6. The CLASSPATH can be edited in the System Variables at the bottom

Note that the various folders are separated by semi-colons.
For example:
C:\Program Files\icommand-0.5\jar; C:\Program Files\rxtx-2.1-7-bins-r2

Happy programming!

Kevin Knuth
Albany NY

Leave a Reply