Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PATH enviornment for javac

 
carlos moreno
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I setup the PATH ENviornment to used the javac compiler in the command line. I have a windows vista home edition OS. I am beginning to read the Head First Java. First step is to have everything setup to start coding.
Thanks in advance to whom ever gives me any help.
 
Tod Novak
Greenhorn
Posts: 13
MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if it's the same in Vista, but in XP you would add the location of your JDK to your PATH like this:

Right click 'My Computer' > 'Properties' > 'Advanced' > 'Environment Variables':

In the lower window, you'll see a variable name PATH (not CLASSPATH). Highlight that variable, then click 'Edit'. Add the following line to the end of you PATH:

C:\Program Files\Java\jdk1.6.0_02\bin

(Note: this is just an example! Your file path to the \Java\jdk1.X.X_X\bin may be different depending on where you installed your Java JDK. If you just took the defaults, this will probably be the same.)
 
carlos moreno
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it thanks Tod Novak
 
Dave Roy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perfect. 5 Minutes to find an answer.

Thanks from me to, Tod Novak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic