Jdk installation and environment variable configuration, jdk environment variable configuration

Source: Internet
Author: User

Jdk installation and environment variable configuration, jdk environment variable configuration

JDK is a Java language software development kit. It is mainly used for java applications on mobile devices and embedded devices. JDK is the core of java Development. It contains the JAVA Runtime Environment, JAVA tools, and Basic JAVA class libraries.

Jdk: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Download the package, click "Install", and continue "next", that is, "next" to set up environment variables.

Right-click my computer and choose Properties> advanced system Settings> advanced> environment variables.

 

After entering, click Create System variable:

Variable name: JAVA_HOME

Variable value: C: \ Program Files \ Java \ jdk1.8.0 _ 92 (jdl installation path, which is the default installation path)

Create a new system variable:

Variable name: CLASSPATH

Variable value:.; % JAVA_HOME % \ lib \ tools. jar (note that there is a semicolon before; and Dot .)

Finally, find the Path in the system variable and click Edit:

At the end of the variable value, add:; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin; (if you are afraid of errors, just copy the variable and add it in notepad, remember the plus points)

Now the environment variables are configured.

Verification Method: win + r Enter cmd and press ENTER

Input in dos:

Java (ps: Determine whether to install jdk)

Javac (ps: Determine whether the environment variables are correct)

Java-vsrsion (ps: view the current version)

Now the jdk and environment variables are OK.

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.