1. JDK Download, install
If you don't have a JDK, Can go here official website: http://developers.sun.com/downloads/
The next task is to install the prompt step-by-step. The steps for setting the environment variables are as follows:
- My Computer, properties, high-level environment variable, add the following environment variable to the system variable:
- java_home Value: Install JDK directory, my C:\Program files\java\jdk1.8.0_20
- classpath value: (note the previous ".;" To add)
- path: append .; %java_home%\bin;%java_home%\jre\bin; (note the previous ".;" To add)
After the installation is complete, you can check that the JDK is installed successfully. Open the cmd window and enter java–version to view the version information for the JDK.
A screen similar to the following shows that the installation was successful:
JDK environment variable Configuration