Caffeinated
Caffeinated

Reputation: 12484

A finicky Windows 7 Path issue (for setting up java command line)

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" -

enter image description here

Upvotes: 0

Views: 253

Answers (1)

An SO User
An SO User

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

Related Questions