Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I need to set the classpath

 
Shae Oommen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

C:\Codes\A.java

How do i set the path
 
richard stockman
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic