Build a Java Development Environment + install eclipse and create a new project, eclipseproject
1. Build a java Development Environment
This section describes how to configure the environment in windows.
1. Install JDK first
Java sdk is short for JDK. You can download the latest JDK from its official website .. Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
2. Configure Environment Variables
On the Windows XP system, right-click my computer and choose Properties> advanced
Right-click 'computer 'in win7 -- properties -- Advanced System settings-advanced
Next we need to configure three attributes: JAVA_HOME, PATH, and CLASSPATH...
1. Configure the JAVA_HOME attribute
Enter 'java _ home' in the variable name field, and paste the installation directory 'C: \ Program Files \ JAVA \ jdk1.8.0 _ 101 'in the variable value field ', click "OK". The JAVA_HOME variable is configured ..
2. Configure the CLASS_PATH variable
Similar to configuring JAVA_HOME, click "new" in "system variables" and enter
Variable name: "CLASSPATH"
Variable value :".; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar; "(values in quotation marks, including the preceding values ". ", here % JAVA_HOME % refers to reference the previously configured JAVA_HOME)
3. Configure the path variable
Check whether the path variable exists in the 'System variable '.
, Add a semicolon (';') at the end of the variable value, and paste the path of the java SDK installation directory.
3. test environment variable Configuration:
Then click 'start' -- 'run', enter 'cmd', or press win + r to enter 'cmd '.
Enter java-version in the dos environment
OK.
2. Use elipse to create a java project step by step
1. Download eclipese
Official Address: http://www.eclipse.org/downloads/
2.decompress and run eclipse.exe.
3. Create a workspace
A. Open eclipse.exe and the first interface appears. You need to set the workspace,
B. Click 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 and Run the program, or press Ctrl + F11.
Now OK!