Installation of Java development environment +eclipse and creation of new project

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.