Building Java development environment and using Eclipse to create Java projects from the ground up

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

Click the download good EXE file installation.

2. Next we need to configure the environment variables

The XP system right-click on ' My Computer '--Properties--Advanced

Win7 System right-click ' Computer '--Properties--Advanced system Settings-Advanced diagram is win7 system demo

Click Environment variables

Next with Java_home,path, CLASSPATH three properties ...

1. Configuring the Java_home Property

Find our directory to install the Java SDK: C:\Program files\java\jdk1.8.0_101 (This sdk1.8.0 version is the download of their own computer, if not you download and my is not a version, it does not matter, the installation of the configuration process is the same), Copy the path

Click New under ' System variables '

The variable name is filled with ' java_home ', the variable value is directly pasted the last copy of the JAVA SDK installation directory, that is, ' 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)

Click "OK" to configure the Class_path variable.

3. Configure the PATH variable

Find out if the path variable is already in the ' system variable '

For example, my system configuration already has the PATH variable, here Click ' Edit ', as shown, you can see that the variable has a value, we add a half-width semicolon (';') at the end of the variable value, and then paste the Java SDK installation directory path.

C:\Program Files\java\jdk1.8.0_101\bin

3. Test environment variable configuration:

Create a Java file with Notepad in the D drive.

Name the text file Test.java

Then click ' Start '--' run ', enter ' cmd ' or ' win+r ' to enter ' cmd '.

Enter ' d: ' in DOS to enter the D drive, then enter Javac Test.java, compile Test.java file

By doing this, we've configured the environment variables to be correct.

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.

Building Java development environment and using Eclipse to create Java projects from the ground up

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.