This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes setting the path in XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "setting the path in XP" Watch "setting the path in XP" New topic

setting the path in XP

Kay Wind

Joined: Jan 25, 2002
Posts: 6
Greetings! This is my second post on the same topic - setting the path in XP. I've downloaded the latest from sun and found the place to edit the path variable, without success.
I can't compile or run programs.
Could someone who has been through setting up Java on XP please walk me through this process.
Thanks, Kay
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9056
Environment variables are set in XP the same way they are set in Win2K. Not like Win9x.

Right click on My Computer, choose properties. Choose the Advanced tab and then click the Environment Variables button.

You can ADD, EDIT, MODIFY global and local variables. You will have to add your CLASSPATH and edit your PATH. I suggest you modify the global variables.

PATH=%PATH%;C:\jdk1.3.0_02\bin;C:\jdk1.3.0_02\jre\bin (or whichever jdk you got and the path to where it's located)

CLASSPATH=C:\java (or the subdir where you will be keeping your compiled classes)

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Kay Wind

Joined: Jan 25, 2002
Posts: 6
Thanks Maureen!!
Your suggestions made all the difference! I'm
up and running on XP!
Kay Wind
It is sorta covered in the JavaRanch Style Guide.
subject: setting the path in XP
It's not a secret anymore!