This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes General Computing and the fly likes classpath and path setting in windows XP OS ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "classpath and path setting in windows XP OS ?" Watch "classpath and path setting in windows XP OS ?" New topic

classpath and path setting in windows XP OS ?

Frank Sikuluzu
Ranch Hand

Joined: Dec 16, 2003
Posts: 116
how to set CLASSPATH/PATH in windows XP OS ?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Right Click on your My Computer Icon. Choose Properties. Go to the Advanced Tab. Click Environment Variables button at the bottom. You have user variables at the top and system variables at the bottom. The system var's already have a PATH defined. You can just edit that, or you can edit/create one in the user var's. And you can create a CLASSPATH var in either system or user.
I would suggest not worrying about the classpath and just specify this at compile/runtime with the -classpath option. It's good practice and when/if you start using an IDE, this is done automatically. Good Luck!

GenRocket - Experts at Building Test Data
jQuery in Action, 3rd edition
subject: classpath and path setting in windows XP OS ?
It's not a secret anymore!