Home > Java > Javagetting Started > How to configure java environment variables

How to configure java environment variables

王林
Release: 2020-01-02 09:52:17
Original
4301 people have browsed it

How to configure java environment variables

First, right-click My Computer and click "Properties" in the drop-down menu

How to configure java environment variables

Secondly, click "Advanced" on the left System Settings"

How to configure java environment variables

# (Related video tutorial sharing: java online video)

Click "Environment Variables" in the new dialog box

How to configure java environment variables

Click "New"

How to configure java environment variables

The variable name is "JAVA_HOME", and the variable value is the path when installing jdk

How to configure java environment variables

Next find "CLASSPATH", if not, click "New"

How to configure java environment variables

The variable name is "CLASSPATH" variable value" .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;”

How to configure java environment variables

Find the Path, edit it, and replace it with its original Add ";%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;" before the variable value. The method of adding is this: C:Variable value

How to configure java environment variables

Finally, Just click OK.

Recommended related article tutorials: Introduction to java programming

The above is the detailed content of How to configure java environment variables. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template