Building the Java environment in Eclipse installation

Source: Internet
Author: User

Turn from Blog Park: Amandaj made a small change.

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

Locate the directory where the Java SDK is installed: C:\Program files\java\jdk1.8.0_101 (Find Java This folder is OK, generally download after installation will have a Java folder) (Java sdk1.8.0 Version is the current demo version, if 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 ', and the variable value is pasted directly from the previous copy of the JAVA SDK installation directory ' C:\Program files\java\jdk1.8.0_101 ' (your own installation address, You can find the file and copy its address), then click "OK", the Java_home variable is configured.

2. Configuring the class_path variable

Similar to configuring Java_home, in "System variables" click "New", enter the variable name in the popup window: "CLASSPATH" Variable value:

.;   %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (including the previous "." and the subsequent seal number, here%java_home% is the reference 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 '

Children's shoes that have not been built in the Java environment before, should be no, need to create a new "PATH" variable, its value is set to (; JDK Bin directory installation address)

For example ; C:\Program files\java\jdk1.8.0_101\bin (in English, don't forget!) )

3. Test environment variable configuration:

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

Enter Java-version/javac in a DOS environment

If the result shows the correct Java version (see version number), the environment variables we configured are correct.

If you enter Javac, the result is:

(⊙o⊙) ... Just see if there will be similar English words before, garbled please ignore (may be the problem of the PC font. )

Welcome message exchange!!!

Building the Java environment in Eclipse installation

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.