Java_Jdk environment variable configuration

Source: Internet
Author: User

1. Install JDK Software

1. download the software.

2. Install software.

3. Configure software environment variables.

Path = (add the directory address where your JDK is installed to the front and add a semicolon (OK ).

Note: The Role of path is to run java programs,

Let the corresponding program file actively find the java JDK execution file.

Set path = [content] set your software configuration address in DOS.

The setting is only for the current DOS window environment.

The difference between the Path in the Path before and after the Path:

Run the program first to find the directory you set.

When running the program, you need to first find the root directory of the system and find the appropriate directory path, that is

The path you set.

Ii. % dynamically obtain the variable path.

For example, Java_Home = do not include a semicolon in the path. It's just a pure path.

Path = % Java_Home % bin;

Note: Java_Home is used to change the JDK path. For example, drive C and drive d tomorrow.

In the application, we only need to change the Java_Home variable. The Path variable does not need to be changed.

.

Select an easy change. Do not select a complicated and error-prone change.

3. Temporary configuration, for example, when testing with someone else's operating system.

You can use the doscommand set to view or modify it.

1. set

2. set path = the jdk path you need; % path %. Add a temporary path.

This command is only valid for the current DOS window.

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.