Eclipse 00: Installation Tutorial + Chinese + simple Java Project creation

Source: Internet
Author: User
Tags java se

Java Installation Tutorial (Eclipse)

Directory:

There are two steps to installing Java:

Installation of 1.JDK

Installation of 2.Eclipse

3.Eclipse Chinese

4.Eclipse creating a simple Java Project

The order of 1 and 2 cannot be reversed, of course you can download the configured ecipse directly

1. Installation of JDK

1. Determine if the system is 32-bit or 64-bit

This is important, because if you install the wrong, you completed the follow-up operation, you go to the official website to download the exe file, when you open, he will appear in Java for Windows Missing and open a Web page for you.

2. Delete the previous version of the JDK

(If this is the first installation you can skip this step directly)
If the previous version of the JDK is not uninstalled, the installation process may be stuck (this is important)

I take Win10 as an example:

Java uninstall with programs and functions, including control Panel, right-click menu Java SE Development

3. Download

Baidu JDK directly on the 64-bit, Baidu to promote the installation package can be

Click the normal download can

4. Installation


(All right, this is a picture of Baidu)

Install the directory yourself, you can default, this to remember, because the subsequent configuration environment variables will be used to

After half of the installation, it jumps out

This is a folder that you can easily install next to.

5. Configure Environment variables

Advanced system settings, System, right-click menu

Select Environment variables

Click on the system variable below新建

Variable name: java_home

Address is just above the JDK address,

As mine is: E:\JDK\JDK

Next, set the CLASSPATH property, variable name: CLASSPATH,

Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; At this point, it is important to note that there is a first.;, remember,%java_home% represents E:\JDK\jdk this path.

Then set the Path property, variable name: path, variable value:%java_home%\bin;%java_home%\jre\bin;, this property is generally there, just add it, pay attention to the problem of semicolons.

After these, the configuration is completed, depends on whether the success can be entered in cmd javac or inputjava -version

With all of this, congratulations, you've done it.

installation of 2.Elipse

1. Download

Baidu, enter the official website

I chose this version.

Click the Yellow

Click and click here start to enter the download

2. Installation

Open the downloaded. exe, select the installation directory, clickLAUNCH

When you are finished, you can open eclipse.

3.Eclipse Chinese1. Explicit version

Open Eclisp Installation location, select the Readme folder

Open, you can see an HTML file, open his browser

Then you can see your version information, like mine is Neon 4.6.0

Then click here to enter the official website download area

ChooseNeon

After entering, for example, I chose the second of the Simplified Chinese

Click to jump and go to download.

After downloading, there will be a compressed package, unzip him and you can see the two files as shown in the inside:

And all you have to do is move the two files into the installation directory. dropins

Then restart Eclipse to

4. Simple New Java Project

I'm going to output "Hello java!." All right

Choose your location to save your Java files first

New->java project, file, after open

Fill in the project name yourself, note that the first letter is uppercase

Just click to finish, and then in the right sidebar there will be something like this

Right-click Project- Hello java New Package

Fill in the name and click Finish.

Right-click New, Class

Fill in the name click Finish

And then it comes up with the Java suffix file

Then enter the code to

Click Run

Click to confirm

Then view the results in the lower console

It's done!

Eclipse 00: Installation Tutorial + Chinese + simple Java Project creation

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.