Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have recently installed Windows 8 Pro in my Laptop.

I have downloaded the latest Java 7 Update 11 from and installed in the system.

I have changed the $PATH variable and it's current value is:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jre7\bin

But still I am geting:

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

I have even restarted my computer once.

What's wrong? What should I do?

share|improve this question

javac is in the development kit (JDK), not the runtime environment (JRE).

I can't remember the exact windows path, but look for a jdk folder and then find the bin folder underneath that.

Edit: You did install the Java development kit version, didn't you? Download here if you didn't.

The link at is for the jre.

share|improve this answer

You need to download Java JDK, and add to environment variable PATH your path to bin directory in your SDK.

After it open cmd and type

java -version

you can check it with this command.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.