Java-based JDK installation and configuration

Source: Internet
Author: User

Configuring Environment Variables Noun description

??? Path: Search through the path system for executable Java files.

??? installation directory for JAVA_HOME:JDK

??? Classpath: Loading Directory

Why do I need to configure path and when do I need classpath?

??? Path

??????? The system variable path tells the system where the executable file is located, and when an executable file is found, it is first searched from the current directory, if not found

??? It will go to the path of the path set to find, and then execute.

??????

??? Classpath

??????? is to tell the JVM where the class file is to be used or executed, and when the class file is placed on a different path, if the class file is used or executed in the current directory.

You need to set the classpath path to tell the location where the file exists.

JDK and JRE and JVM

??? Jdk:java Development Kit, the abbreviation for Java Development Kit

??? Jre:java operating environment, is the abbreviation of Java Runtime Environment

Jvm:java virtual machine, the abbreviation for Ava Vsan

The JDK installation configuration environment variable is detailed:

??? First, double-click the JDK installation package to go to the installation Wizard

???????

??? Step two, Next, change the installation path, select Install all components

???????

??

??? Part III, change to D:\jdk.1.7.0_07\

??????????????

??? Fourth step, click OK

??????

??? Fifth step, Next, start the installation

?????????????

???? Sixth step, install JRE, this step can choose not to install because the JDK is installed, there is no need to install a separate JRE

????????????? ?

??? Seventh step, complete the installation, then enter the configuration link

Right-click My Computer, select Properties

???????????

??? Eighth step, select Advanced system settings

???????????

??? Nineth step, select environment variables

?????????

??? Tenth step, under User variables, select New

??????????

??? 11th step, enter Java_home, variable value for JDK installation directory

??????????

??? 12th Step, create a new path with a value of%java_home%\bin

??????????

???? 13th step, create a new classpath with a value of.; %java_home%\lib;

??? The 14th step, the environment variable configuration is complete. Enter Javac under DOC and the following interface appears to indicate the success of the configuration.

????????????

??

Java program run process

??? 1. Compile Javac: Compile the Java source file into a class byte-code file

??? 2. Run Java: Run the class file

Java-based JDK installation and configuration

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.