Java EE Development Environment Building (1)---(JDK installation)

Source: Internet
Author: User

----------I'm the preface----------

Sometimes looking for information from the Internet really is a very open (Dan) Heart (Teng) thing,

Because a lot of what you want to know is always cleverly omitted ...

Or...

Not at all.

It's so Teng (dan),

There are wood there.

So...

You know...

installation of JDK for Java EE development environment

What is Jdk,jdk is why, I will not pull, Baidu everywhere is, perhaps later will be specific research, and then pull ...

download of 1:jdk

Direct Baidu JDK

Because Java was acquired by Oracle (already acquired well ==!) so the address must be www.oracle.com... Oh, don't be wrong.

It's like this when you come in (beat me to death, I don't say I'm going to zoom in on the page):

See where the JDK was downloaded?

And then it's here:

Then is the version/system of choice, see:

Note the option to select the red tick in the diagram before downloading it!

Then click on the download link below and start downloading the ~

I downloaded the jdk-8u91.

installation of 2:jdk/jre

Finally to start the installation, think really is a little excited ah ~ ~

Locate the JDK installation file that you just downloaded and start the installation

As to which disk to install it ~ ~ Of course, you are free ~

However, there is a suggestion, all the development software, preferably with the other software in your computer, separately installed in a folder, easy to manage ~ ~

All my development related software will be installed in the D-Disk Develop folder

And then say,

Click Install

Then the first page doesn't work ... Click Next

To choose the installation function, the installation location of the interface ...

installation function without tube, all installed on the line ~ ~

Here's a tip:

Click on the changes, the first to copy the \java\jdk1.8.0_91\,

Then select the disk, folder,

Finally, the copy of the path is pasted in the back, so that the province in the back to write the path ~ ~

Of course, if you do not choose here, installed in the default location is also possible ~ ~

When the path is selected, click Next.

Then we'll start installing the JDK.

After the JDK is installed, the JRE will continue to be installed (what is the JRE? Ask Niang ~ ~)

It will pop up another installation screen (the original interface is still there)

Similarly, click Change, install to the place you want to install (preferably with JDK installed in a folder ...) The default path is under a folder ... )

The installation in a folder means:

Instead of installing the JRE in the JDK ... (Because someone has done it, I don't say it's me ...) )

Then wait for the installation to complete

Congratulations, the successful completion of the second step, installation ~ ~

You think it's over? Then you too can (Tian) Love (zhen) ...

3: Configuration

First, you need to know where you install the JDK ~ ~

Yes, the location of the JDK ~ ~

And then:

Right click on the computer (My Computer)--"Properties--" Advanced system settings--"Environment variables

In System variables:

Click New:

Variable name: java_home

Variable Value: JDK Installation path-"Mine is: D:\develop\Java\jdk1.8.0_91

Click New:

Variable name: CLASSPATH

Variable value:.; %java_home%\lib\dt\.jar;%java_home%\lib\tools\.jar;

This place has a note: Classpath can not match, but with the words must note: The first%java_home% front has-".; This must be noted!!!

Locate the Pathin the system variable and click Edit

Added at the top of the variable value :%java_home%\bin;

In front of the match, the back is the same, I prefer the front with ... Nice...

Well ~ all well and then just click OK to save ~ ~ must be saved Oh ~ ~

Finally, try to see if there is a configuration success ~ ~

Into the cmd window is that dark window ~

Enter Java carriage return ~ If there is a lot of things in the back ~ then you are half done!

Re-enter javac carriage return ~ ~ Ibid, if there is a lot of things in the back ~ so ~ Congratulations to you ~ ~

The JDK has been successfully installed on your computer.

In fact, very simple ~ ~ The most important is in the configuration, if the compilation failed

Check carefully, is not configured when the path is wrong, the location is wrong, the spelling is wrong, or the use of Chinese symbols, etc. ~ ~

OK ~ ~ So many ~ ~

I wish you a successful installation Oh ~ ~

----------Statement----------

Bovenchin hand, step by step Pure ~ ~ in order to let more people need to solve the problem of the way to solve the problem ~ ~ So ~ ~ Allow Reprint ~ ~ Not to tell me ~ ~ But to indicate the source of reprint Oh ~ ~

----------Trailer----------

The next article will Introduction :installation of MySQL in Java EE development environment

Java EE Development Environment Building (1)---(JDK installation)

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.