There is no need to manually configure environment variables under the iOS system, while Windows is different. See many tutorials on the web, found that the method of configuring environment variables is prone to problems under WIN10, the CMD verifies that both Java and java-version are displayed as normal, and JAVAC displays non-internal and external commands.
The reason is that in win10 different from other win system configuration environment variables, you need to pay attention to the PATH variable using absolute path, but not simply add%java_home%\bin and%java_home%\jre\bin
You need to add two new paths under path:
C:\Program Files\java\jdk1.8.0_131\bin
C:\Program Files\java\jdk1.8.0_131\bin\jre\bin
Where C:\Program files\java\jdk1.8.0_131 needs to be changed to its own JDK path.
Eclipse installation considerations under win 10; Resolve cmd in javac display non-internal external commands