O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting the PATH in Windows

The PATH environment variable tells the system where to find the java, javac, jar, and other executables. This enables you to compile Java classes, run your programs, make .jar files, and so forth, from any directory on your computer.

1.
Navigate to Start > Control Panel > System.
2.
Choose the Advanced tab.
3.
Click Environment Variables.
4.
In the System Variables pane, double-click the PATH variable. Scroll to the end of the list of variables, and add the following text (for default installation of SDK 1.5.0):
C:\j2sdk1.5.0\bin

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required