Reputation: 12484
I am realy close to solving this, but am having a little trouble setting up my Java command line prompt in windows 7. the funny thing is that I can use java & javac like this:
"%javac%"
Why is that ? I.e when I try to say javac *.java
, it won't work; and even %javac% *.java
won't work (ie it gives me "'java' is not recognized as an internal or external command,operable program or batch file -" ), but "%javac%"
works; .. here is a SS of my "Envir. Variables" -
Upvotes: 0
Views: 253
Reputation: 24998
Based on your comment that 'java' is not recognized as an internal or external command,operable program or batch file, you do not have jdk bin
folder in your PATH
environment variable. Add \path\to\jdk.version\bin
to your PATH
variable, preceded by a semicolon ;
. You have to add, not overwrite the variable.
Upvotes: 2