I've seen this before, and I've found a lot of blogs on the internet that are mostly about modifying the settings of environment variables, the comments below are all solved, but some people can't solve them, and I can't solve them.
Recently encountered this situation, originally reported "' Javac ' is not internal or external command problem ' time ecplise run also OK, but the heart has the practice, the JDK removed the reinstallation.
When installing the JDK, select a path to install the JDK, install it, and then choose a path to install the JRE. I installed the Java directory only JDK, I would like to be installed after the JRE selected path is not correct, the JRE covers the JDK;
The new JRE folder is created in the Java directory where the JDK is located, and the new JRE folder is selected when installing the JRE after the JDK installation is complete. Modify environment variables after installation, run Javac, run successfully!
Finished installing
Classpath= ".; %java_home%\lib; "
Java_home=d:\program files\java\jdk1.8.0_91
Path joins "%java_home%\bin;" Note the semicolon.
In this context, I strongly suspect that the JRE installation location is incorrect, resulting in ' javac ' not an internal or external command issue.
[Meet time] resolve ' javac ' is not an internal or external command issue