"javac not recognized", Java 7-Windows 8

I'm trying to configure javac, but I keep getting a terrible error message

javac is not recognized as an internal or external command, operable program or batch file 

Ive added the javac location (C: \ Program Files \ Java \ jdk1.7.0_17 \ bin) to Path in Environment Variables .. restarted the console, etc., but the error persists. Did I miss something?

+4
source share
2 answers

I had the same problem as yours and fixed it like this:

In the system variables, I created a new variable called JAVA_HOME, and I set the value: C: \ Program Files \ Java \ jdk1.7.0_17. After that, I edited Path, which is also in the system variables, and I added:;% JAVA_HOME% \ bin.

Hope this helps you!

+28
source

Space on the way in Program Files is suspicious. Did you put this part of the path in quotation marks?

You can also try where javac to see which javac is on the way. However, in this case, it does not sound as if it does get in the way (it will probably also report that javac cannot be found).

+1
source

All Articles