First, the construction of the Java Development environment
The main point here is how to configure the environment in the Windows environment.
1. Install the JDK first
Java's SDK is referred to as the JDK, to its official website to download the nearest JDK. Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
2. Configure Environment variables
The XP system right-click on ' My Computer '--Properties--Advanced
Win7 System right-click ' Computer '--Properties--Advanced system settings-Advanced
Next with Java_home,path, CLASSPATH three properties ...
1. Configuring the Java_home Property
The variable name is filled with ' java_home ', the variable value is directly pasted the last copy of the JAVA SDK installation directory ' C:\Program files\java\jdk1.8.0_101 ', and then click "OK", the Java_home variable is configured.
2. Configuring the Class_path variable
Similar to configuring Java_home, in the "System variables" click "New", in the popup window to enter
Variable name: "CLASSPATH"
Variable value: ".; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; " (Enclose the value in quotation marks, including the preceding ".", where%java_home% refers to the previously configured java_home)
3. Configure the PATH variable
Find out if the path variable is already in the ' system variable '
, add a half-width semicolon (';') at the end of the variable value, and then paste the path to the Java SDK installation directory.
3. Test environment variable configuration:
Then click ' Start '--' run ', enter ' cmd ' or ' win+r ' to enter ' cmd '.
Enter java-version in a DOS environment
Ok.
Second, use Elipse to create a Java project from the beginning step
1. Download Eclipese
Official address: http://www.eclipse.org/downloads/
2. Unzip and run the Eclipse.exe.
3. Set up a working space
A. Opening the Eclipse.exe the first interface, you need to set up a working space,
B. Click on the "Workbench" link in the upper right corner of the work area to enter the Workbench
C. Create a Java project
7. Compile and run
Click Run--run on the menu bar to compile the run, or press CTRL+F11 directly
This ok!
Installation of Java development environment +eclipse and creation of new project