My javac command is not working.
“javac is not recognized as an internal or external command, operable program or batch file.”
- -java version WORKS
- I’ve tried setting classpath successfully in command prompt.
SET CLASSPATH "C:\Program Files\Java\jdk1.7.0_09\bin"; - Ive adding it in environment variables.
;C:\Program Files\Java\jdk1.7.0_09\bin ;C:\Program Files\Java\jre7\bin - Ive checked the bin folder
java.exeis there aswell asjavac.exe.
^ Tried all of these still doesn’t work. I’ve also restarted command prompt still does not not work.
Why is not working?
Just do this
In the same dialog, make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK,
e.g. C:\Program Files\Java\jdk1.5.0_02 and that %JAVA_HOME%\bin is in your Path environment variable.