Learn to configure the Java development environment on a new computer _java

Source: Internet
Author: User
Tags windows x64

For the Java novice, just start to learn Java, and their own computer has no Java development related environment, how should be configured?

(Androvin hand also needs Java development environment)

The first step is to download and install the Java JRE

The JRE (Java Runtime Environment), the Java Runtime Environment, is a collection of environments that are required to run Java programs, including various class libraries.

1, the JRE official download;


2, click on the left side of the Java typeface icon:

3, into the next layer of the page, click Agree to "Accept License agreement", and then according to your computer system to choose the type of download, if your computer is 32 bits on the download windowsx86,64 bit on the download of Windows x64.

If you don't know if your computer is 32-bit or 64-bit, you can knock systeminfo at a command prompt and find the system type, if the x86 represents 32 digits, x 64:64 bits.

General XP for 32-bit, Win7 above the system, there are 32 of 64-bit. Here is a 32-bit download:

4, pop-up Save the window, try to put it in a pure English directory, and the installation of the system using the default path.

5, the installation is very simple, the default selection "development tool", and then point to the next step on it.

In the second step, configure 3 environment variables:

Right-click My Computer-> Properties-> advanced-> environment variables.

1, the new system variable Java_home, the variable value is you install the JRE path, such as: C:\Program files\java\jdk1.8.0_51

2, editing system variable Path,path is generally already exist, so you need to select path to edit, after the value of the variable added:;%java_home%\bin;%java_home%\jre\bin

Note that there must be a semicolon before it, separated from other paths that already existed.

3, the new system variable Class_path, the variable value is:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

Be careful not to ignore the previous "." Resolution

Finally, open the command prompt cmd, enter Java, return. Then enter Java–version, carriage return. Finally enter Javac–version, carriage return. As long as the data came out after each return, it proved successful.

The third step is to download and install eclipse.

Eclipse is a common tool for developing Java projects.

1, search Eclipse on Baidu, look for Eclipse's official website. http://www.eclipse.org/downloads/

2, into the download page, see, To download is "Eclipse IDE for Java EE developers", according to your system to choose 32 or 64-bit.

3, after entering the download page, drag the page to the bottom, select the following image of the download link (this is for China's domestic download link "Northeastern University").

4, click "Click here" and start downloading immediately.

5, pop-up download form. Save the file, unzip it and put it in the full English directory (do not include Chinese in the entire path of the directory).

Step Fourth: Modify the Eclipse-initiated configuration file

Eclipse does not need to be installed after decompression, can run directly. However, modifications to the configuration file are required to start successfully.

Open Eclipse.ini this file. Double-click directly to open it, or use Notepad to open it.

Sometimes the contents of this file will become only a long line, all of the carriage return change into a rectangular small black square. Then you need to delete these black squares, and then enter the line in this position to wrap.

Make the configuration file appear to be in this format as shown in the following illustration:

Then modify the contents of the OpenFile (the Red Line) to the installation path of your JDK (the directory that starts with JDK under C:\Program Files\java), such as: C:\Program files\java\jdk1.8.0_51\bin\ Javaw.exe

Save the configuration file.

Step fifth, start Eclipse, and you can develop it.

Eclipse can then be launched successfully. The working directory is set up by default at startup, and you can set up other directories (preferably in English-only directories).

You can also check the following "Use this as" as "again" to avoid requiring you to reset your working directory every time you start.

Once you are sure, you can open eclipse and develop it. Below is the Welcome page after eclipse startup.

The above is the entire content of this article, I hope to be proficient in configuring the Java development environment to help.

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.