Discussion:
Modifying the Path Variable
(too old to reply)
KevinSimonson
2010-10-04 20:12:22 UTC
Permalink
I'm currently working on a Windows XP OS, and need to modify my PATH
variable to include "\Program Files\Java\jdk1.6.0_21\bin" so that I
can just type in "javac Calculator.java" and have it compile the
program instead of me typing in the horribly long path name all the
time. How does one do that? How does one modify the PATH variable on
Windows XP? Any information would be greatly appreciated.

Kevin Simonson
Spalls Hurgenson
2010-10-04 20:24:52 UTC
Permalink
On Mon, 4 Oct 2010 13:12:22 -0700 (PDT), KevinSimonson
Post by KevinSimonson
I'm currently working on a Windows XP OS, and need to modify my PATH
variable to include "\Program Files\Java\jdk1.6.0_21\bin" so that I
can just type in "javac Calculator.java" and have it compile the
program instead of me typing in the horribly long path name all the
time. How does one do that? How does one modify the PATH variable on
Windows XP? Any information would be greatly appreciated.
It's in an out-of-the-way place.

Right-click "My Computer" and chose "Properties" (alternately, press
the windows-key and the pause key simultaneously to get to the same
place)

The "System Properties" window opens. Click on the "Advanced" tab

At the bottom of this tab is the "Environmental Variables" button.
Click.

A new window opens with two panes. There are variables for both
just-the-current-user (top) and system-wide (bottom). The path
variable is usually in the system-wide (bottom) pane. Click the "Path"
variable to highlight and then click the "edit" button.

Modify the path by adding in the appropriate new information (use the
semi-colon ";" to separate it from existing values) and then click OK
to accept changes. You may need to reboot for system-wide changes to
take effect.
Ted Nolan <tednolan>
2010-10-05 06:54:12 UTC
Permalink
Post by KevinSimonson
I'm currently working on a Windows XP OS, and need to modify my PATH
variable to include "\Program Files\Java\jdk1.6.0_21\bin" so that I
can just type in "javac Calculator.java" and have it compile the
program instead of me typing in the horribly long path name all the
time. How does one do that? How does one modify the PATH variable on
Windows XP? Any information would be greatly appreciated.
Kevin Simonson
Go to the Control Panel and the "System" icon (assuming Classic View).
Choose the "Advanced" tab. At the bottom will be a button labelled
"Environment Variables". Choose that. The next window will have a
pane labelled "System Variables". Left click on "Path" to highlight it
(you may have to scroll down to find it), then click "Edit".

Ted
--
------
columbiaclosings.com
What's not in Columbia anymore..
Steve Hayes
2010-10-05 08:59:30 UTC
Permalink
Post by KevinSimonson
I'm currently working on a Windows XP OS, and need to modify my PATH
variable to include "\Program Files\Java\jdk1.6.0_21\bin" so that I
can just type in "javac Calculator.java" and have it compile the
program instead of me typing in the horribly long path name all the
time. How does one do that? How does one modify the PATH variable on
Windows XP? Any information would be greatly appreciated.
This is from my autoexec.bat

SET CLASSPATH=C:\Program Files\PhotoDeluxe 2.0\AdobeConnectables
SET PATH=%PATH%;c:\windows;c:\du;e:\xy;c:\belfry

It's a lot harder in Windows 7, though.

I'm not sure how one does it there.
--
Steve Hayes from Tshwane, South Africa
Web: http://hayesfam.bravehost.com/stevesig.htm
Blog: http://methodius.blogspot.com
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
Loading...