File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes java classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java classpath" Watch "java classpath" New topic

java classpath

deepti garg

Joined: May 08, 2003
Posts: 1
i have windows millenium ..
i didn't get how u set path in windows me..
Donald R. Cossitt
Ranch Hand

Joined: Jan 31, 2003
Posts: 401
I have Windows XP Pro but did you try:
Click 'Start'; rightClick MyComputer; select 'Properties" from the popupMenu; select the 'Advanced' tab from the popupWindow; select 'Environment Variables' commandButton; select 'CLASSPATH' from the 'System variables' listBox at the bottom; click the 'Edit' commandButton and paste your path in the 'Variable value: textBox or if you don't have a CLASSPATH Variable name click the 'New' commandButton and type "CLASSPATH" in the Variable name: textBox the add your path; click OK.
Should look something like this:


Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
I don't think that works in ME doco. I'm pretty sure you need to set the CLASSPATH in the autoexec.bat file for all non-NT Windows platforms. You should be able to do that from msconfig. (I'm doing this from memory so it may not be exactly right) Select Start->Run and type msconfig in the text area and press OK. A tabbed dialog should come up and there should be a tab for autoexec.bat which you should select. On a new line enter: SET CLASSPATH=myClassPath replacing myClassPath with the actual CLASSPATH. Remember to delimit the various directories with a ; semicolon. Press Apply (or whatever the msconfig dialog indicates) and reboot the machine. Your CLASSPATH should be set.

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I agree. Here's the link:
subject: java classpath
It's not a secret anymore!