Environment Variable Not recognised

I am setting Environment Variable, Still OS cant recognise. Check this out you will get it.

https://www.dropbox.com/s/raqr4wbtoxxz0b8/1.JPG

I tried with Admin privileges also still same but when I enter

echo %java_home%

or

echo %jre_home%

It is showing path corretly. Why isnt javac command working.

Any Help will be appreciated.

Jon Skeet
people
quotationmark

You don't have javac in your path. Setting the JAVA_HOME and/or JRE_HOME environment variables (which aren't needed any more, for the most part) does nothing to the PATH which the command shell uses to find executables.

Put the relevant JDK bin directory in your PATH environment variable instead - and unless you actually need JRE_HOME and JAVA_HOME for some reason, I'd get rid of them. If you do need them, get rid of the "bin" part - it should just be the root JRE directory, e.g.

c:\Program Files\Java\jdk1.7.0_45

people

See more on this question at Stackoverflow