Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes I need to set the classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I need to set the classpath" Watch "I need to set the classpath" New topic

I need to set the classpath

Shae Oommen

Joined: Apr 12, 2006
Posts: 13
I have downloaded everything.I need to set the classpath.

C:\Program Files\Java\jre1.5.0_06\bin

this is where the bin is
and my program is saved in


How do i set the path
richard stockman

Joined: Apr 11, 2006
Posts: 11
on XP Right Click MyComputer > Properties > Advanced Tab > Environment Variables > under user Variables section, add or edit PATH > with the location of the install c:\program files\java\jdk1.5.0_6\bin\. That should be it.
marc weber

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Shae Oommen:
I have downloaded everything.I need to set the classpath...

You need to set the PATH, which is different than the CLASSPATH. Leave the CLASSPATH alone for now.

To set the PATH, see step 5 of Sun's installation instructions for Windows.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: I need to set the classpath
Similar Threads
Still not Working
question on package and classpath
Tomcat is not running.. pls help
how to set path in autoexec.bat
executing rmid