1. Install the JDK development environment
2. Configure Environment variables:
For Java program Development, the main use of the JDK's two commands: Javac.exe, Java.exe. Path: C:\Java\jdk 1.7.0 _09\bin. However, because these commands are not part of the Windows own commands, you need to configure the path to use them.
Click Computer-Properties-Advanced system settings, click Environment Variables. Click New under the System Variables column to create a new system environment variable.
(1) New variable name "Java_home", Variable Value "C:\Java\jdk1.8.0_05" (that is, the JDK installation path)
(2) Edit, variable name "Path", at the end of the value of the original variable, add ";%java_home%\bin;%java_home%\jre\bin"
(3) New variable name "CLASSPATH", Variable Value ".; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar "
For example:java_home environment variable operation is as follows:
3, confirm whether the environment configuration is true:
In the console, enter the java,javac,java-version command separately, with the compiler information for the JDK as shown below, including information such as modifying the syntax and parameter options for the command.
Java command:
Javac command:
Java-version command:
Java Configuration----JDK development environment Construction and environment variable configuration