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 PATH enviornment for javac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "PATH enviornment for javac" Watch "PATH enviornment for javac" New topic

PATH enviornment for javac

carlos moreno

Joined: Nov 01, 2007
Posts: 2
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.

I have not failed. I've just found 10,000 ways that won't work. -Thomas Edison
Tod Novak

Joined: Dec 14, 2006
Posts: 13

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.)

"-Of all the things I've lost...I miss my mind the most!"
carlos moreno

Joined: Nov 01, 2007
Posts: 2
Got it thanks Tod Novak
Dave Roy

Joined: Feb 15, 2008
Posts: 1
Perfect. 5 Minutes to find an answer.

Thanks from me to, Tod Novak
wood burning stoves
subject: PATH enviornment for javac
jQuery in Action, 3rd edition