Home > Java > JavaBase > body text

How to configure the java environment

王林
Release: 2019-11-16 11:42:56
Original
16051 people have browsed it

How to configure the java environment

1. Right-click My Computer--Properties, click Advanced System Settings---Environment Variables. In the system variables, create a new system variable named "JAVA_HOME". The variable value is the installation path of jdk. For example, my installation is in C:\Program Files\Java\jdk1.7.0_80

How to configure the java environment

2. Find the system variable Path and add ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin; after the original variable value;

Note: If Finally, it already exists; no need to add

How to configure the java environment

3. Then create a new variable name: classpath

Variable value: .;%JAVA_HOME%\lib;%JAVA_HOME% \lib\tools.jar click OK

How to configure the java environment

Recommended tutorial: Java tutorial

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

Related labels:
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