Java installation and environment variable settings

Source: Internet
Author: User

Reference URL: https://jingyan.baidu.com/article/f25ef2546e45e4482c1b82f0.html

Tools/Materials
    • JDK and JRE official website: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Java Proper installation steps
    1. 1

      Download the latest Java installation package to the official website and enter the top URL

    2. 2

      You can download the latest Java installation package and choose your computer system, 32-bit or 64-bit. Then, after agreeing to the service, click Download

    3. 3

      Click Run to install after download is complete

    4. 4

      If you do not want to install to C drive by default, click Change Directory

    5. 5

      The Java program is being downloaded and will be automatically unpacked after the download is complete.

    6. 6

      Change the installation directory

    7. 7

      installation process, installation complete

    8. 8

      Installing the JDK will automatically help you look at the JRE's Oh ... If you install the JRE alone, the JDK will not be installed automatically. This is a note.

      END
Java environment variable settings
    1. Right-click My Computer--"Properties--" Advanced environment Configuration--"Environment variables

    2. Create a new system variable called "java_home": The value is:D:\Program Files (x86) \java\jdk1.7.0_60(This is the installation directory, everyone changes according to their own directory)

    3. Create a new classpath system variable. Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; ( preceded by a number and semicolon , meaning that all files in that directory or subdirectory are applied), or write directly .; %java_home%\lib; You can do it.

    4. New path variable, variable value:%java_home%\bin;

    5. Click OK, hold, open cmd, enter Java and Javac, and view the results. The result is a successful configuration of the Java environment

Java installation and environment variable settings

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.