Background: Lenovo rescuers R720 notebook, the system one-click Restore, need to reinstall a portion of the software, the most basic is the JDK, but today in the installation of a problem, before the installation of the 1.8 version, not carefully configured environment variables, this time the installation is 1.7 version, the variable is carefully configured, but has been an error!
that is, "' Java ' is not an internal or external command, nor is it a running program or batch file. ".
Find out why:
1, think is 32 jdk and 64-bit system conflict, Baidu a bit---------- compatible .
2, think is the configuration variable, less punctuation , after careful comparison, found that there is no.
3, the problem search interval narrowed, after Baidu, found this article http://jingyan.baidu.com/article/d5c4b52b80665fda560dc5e4.html?allowHTTP=1. Sure enough to solve the problem!
Solve the problem:
The path variable that was configured at the beginning is this:
However, to change to this, click " Edit text (T)..." To place the variable at the end of the text in the same position: that is , at the very beginning
That's what happens when you're done:
Then click " OK "-" OK "---> " ok ": If your java_home and classpath are correct.
win+r Open the command line operation, test the Java command again, the result
About WIN10 System version 1709 installation JDK variable configuration is correct but there is still "Java is not an internal or external command" workaround