Home  >  Article  >  Java  >  windows configuration java environment

windows configuration java environment

王林
王林Original
2019-12-09 15:14:4511758browse

windows configuration java environment

Right-click on My Computer and select Properties

windows configuration java environment

After entering, select Advanced System Settings, then select Environment Variables. After opening the Environment Variables dialog box, click the [New] button under [System Variables] below

Recommended related video tutorials: java online tutorial

and then enter JAVA_HOME, the corresponding variable value is the directory where your jdk is installed

windows configuration java environment

Click OK.

Then create a new variable name: classpath

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

windows configuration java environment

Then find the variable named "Path" in the system variables and double-click it. The new variable is %JAVA_HOME%\bin

windows configuration java environment

After confirmation, enter "java", "java -version" (java -version represents the version of java you installed) and javac respectively, if all are normal Running means that java has been installed correctly

Recommended related articles and tutorials:Getting started with java development

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

Statement:
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
Previous article:How to encrypt in javaNext article:How to encrypt in java