Installation environment configuration detailed steps for Java

Source: Internet
Author: User

-------------------- Statement, if you have any suggestions or do not understand the place, welcome to reply, we can learn from each other, reproduced please specify the source, thank you ----------------

First install JDK (Java Development Kit Development Kit)

: http://www.oracle.com/technetwork/java/javase/downloads/index.html, click the download button below:

Then the diagram appears

And then

At last

After the download is finished click Install (Note: The path can not have Chinese, otherwise there will be inexplicable bug, I think we all understand)

Where you want to put it when you install it, here I put the default,:

After the installation is complete, we will configure the environment, of course, do not configure the line, put why to configure, because convenient (do not understand can see: http://www.cnblogs.com/qq1871707128/p/6046893.html)

I'm using a win7 64-bit system, on the graph:

Click Computers-Properties:

And then:

user environment variables are different for each user of a particular computer. Variables include any content that is set by the user, and all variables defined by the application, such as the path to the application file. Of course, it is best to set the system variables, because my computer is only I use, so I only set the user variables, the method is the same set.

My default is this:

Then we click New:

Set 3 properties in "User variable", Java_home,path,classpath (case- insensitive), click "Edit" if it is already present, notice that the semicolon is separated from the previous, and click "New" if it does not exist.

The variable setting parameters are as follows:

    • Variable name: java_home
    • Variable Value: C:\Program files\java\jdk1.8.0_111
    • Variable name: Path
    • Variable value:%java_home%\bin;%java_home%\jre\bin;
    • Variable name: CLASSPATH
    • Variable value:.;       %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Note: This is preceded by a dot '. '

:

Of Course if you do not know the location of the files you installed can be searched like this:

Open the disk you installed, search for jdk1.8.0_111, then double-click Open, then double-click on the bin, right-down properties, copy the link address can be

On

Now let's test the environment we configured has no success, command (Window key) +r, and then enter CMD, OK after input command: java,javac Several commands, the following information appears, Indicates that the environment variable is configured successfully;

Installation environment configuration detailed steps for Java

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.