Here’s the address on my drive:
C:\Program Files\Java\jdk1.6.0_18\bin
How would I go about setting the path variable so I can go in command window (windowskey+r “cmd”) and be able to type things like:
javac TestApp.java
I’m using Windows 7 Professional.
Typing the
SET PATHcommand into the command shell every time you fire it up could get old for you pretty fast. Three alternatives:.CMD) file. Then you can just put theSET PATHinto that file before yourjavacexecution. Or you could do without theSET PATHif you simply code the explicit path tojavac.exePATHin the “environment variables” configuration of your system.PATHfirst, which brings us back to (1) and (2).