Leo Leo - 4 years ago 306
Java Question

"Javac" doesn't work correctly on Windows 10

the problem is that I upgraded to Windows 10 and now I'm installing my tools to programming and now that I installed the JDK 7 of Java, when I try to use in the cmd the command:
- "javac"

The result of this is: "javac" is not recognized as an internal or external command...

But I was edited the PATH with the correct link of jdk, because when I use "java", it is ok.

Now, I tryed in the console with this command:

PATH=%PATH%;"C:\Program Files\Java\jdk1.7.0_79\bin"

And when I ejecute this command, when I use "javac" it works, but now, when I open other console, it doesn´t work, or when I restart the console, this command is not recognized.

What could be the problem?

Answer Source

java is part of the JRE, not the JDK.

You need to add the JDK bin to the system PATH, in Control Panel, System, Advanced, Environment Variables.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download