Record the installation process:
First, the URL
http://www.oracle.com/technetwork/java/javase/downloads/index.html
click the red circle, find their own computer version applicable here is the 64-bit windows
In the pop-up box asking tick
After the download is complete, double-click the installation, (because I installed a screenshot of the steps will be omitted when the installation) is recommended installed in the C drive , I remember the installation path is here:
the installation is complete.
Second, configure the environment variables
after the installation is complete, right-click on "this computer", select properties, advanced system settings, environment variables
in the system variable check or add the following variables in:
1.JAVA_HOME, the value of your JDK installation path
2.CLASSPATH , value;.% JAVA_HOME% \ lib; % JAVA_HOME% \ lib \ tools.jar noted dot semicolon
3. Double-Path variable is added;% JAVA_HOME% \ bin and;% JAVA_HOME% \ jre \ bin
that each time should click OK
Complete configuration environment variable.
Third, the detection JDK is installed completely
win + R to open the Run, enter cmd
1. Enter java, see if there is the following:
this step the OK
2. Enter javac
where I appeared javac is not an internal or external command prompt (because now the problem has been resolved, on the internet to find the chart)
said here the solution in my case, not necessarily all of my case are
in fact my situation is very simple, I did not look carefully when configuring the environment variable version of jdk may be I installed jdk long time ago, so that the environment variable to write an older version
to the environment variable path into the newly installed it
now re-enter javac
appear this interface on it
Summary
fact other cases are also configured with environment variables, be careful to check whether it is editing system variables , JDK installation path is fill in the three environment variables have not added on