The first step : To install the JDK:
:http://www.oracle.com/technetwork/java/javase/downloads/index.html,
Note the version ( depending on the computer ), the installation path optional, to remember the path, after the use (the installation process omitted)
Under Installation path: * The bin directory is an executable file, mainly used by Javac.exe and Java.exe
* Lib Directory is a class library file at Java development,. Jar End
Step two : To Configure environment variables:
Variables that need to be configured: * Java_home: Configuring the JDK installation path
* PATH: Configure JDK command file location, both bin
* CLASSPATH: Configure the Class library file location, both Lib
Configuration method: My Computer (right-click)--Properties -- Advanced system Settings- - environment Variables -- system variables
1,java_home need to create a new,java_home for the variable name,JDK Installation path is the variable value
2, path itself has, add can, The path of the bin directory is the variable value, put in the front end, with a semicolon separated from the following path
3,CLASSPATH also need to create a new, variable value for the path of Lib , for .; F:\JDK_Soft\lib, (comma does not count) This is my path,
Note the preceding dots and semicolons
Then make sure you can
As shown below:
Verify success:
Open a command-line file (that is, cmd), execute Java and Javac, and if a bunch of similar descriptions are present, the configuration succeeds.
2. Building Java Development environment