I've never had a JDK before. Today's situation, a variety of solutions to try the afternoon, finally came out, say the solution:
Java_home and Classpath are all established in the system variables;
Java_home Add the installation directory for the JDK, note that java_home should be written correctly: Do not add semicolons behind the installation directory.
The corresponding value of classpath is.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar pay attention to this place don't miss the front point.
Add after the original path value;%java_home%\bin;%java_home%\jre\bin or direct:;%java_home%\bin;%java_home%\jre\bin
When you are sure, restart the cmd input javac this time it will be useful. Remember to restart OH.
There are all the Internet on the front, what do I meet today?
Is that I wrote Java_home Javahome less _, but I use the back of the%java_home% so wrong, because I did not establish the JAVA_HOME environment variable I built is javahome, so wrong.
Plainly java_home is a variable name that corresponds to the value of the variable, but if the variable name of the declared variable and the variable name used is different, how can it, hehe, this principle and programming.
Students, we must pay attention to this problem, and so on other variable names should also pay attention to whether the correct.
WIN8 Configuring Java Environment variables