Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Java jdk environment variables

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to configure Java jdk environment variables". In daily operation, I believe many people have doubts about how to configure Java jdk environment variables. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "how to configure Java jdk environment variables". Next, please follow the editor to study!

Introduction

JDK is the core of Java development and the toolkit for Java language development. Usually we can't use Java JDK after installing it, so we need to check to see if there are any system environment variables configured. The specific operations are as follows

one。 Under windows, first open the dos window, enter the following command: Java or Java-version, and get the following figure, indicating that the environment variable has been configured into effect.

1. Java command, as shown below

Figure (1-1)

2. The Java-version command is shown below:

Figure (1-2)

two。 Configure Java JDK environment variables under Windows

1. First find the Control Panel-"Systems and Security -" Advanced system Settings-"Environment variables"

two。 Click the environment variable to configure. After clicking, the system variable-"New, enter the variable name: JAVA_HOME, and the variable value is the path of the directory where jdk is installed, for example: d:\ java\ jdk1.8.0_171

3. After clicking OK, we find the Path variable in the system variable, and then double-click to edit and add the variable just configured, such as:% JAVA_HOME%\ bin

4. As above, create a new variable for CLASSPATH in the system variable with the value of:.;% JAVA_HOME%\ lib;%JAVA_HOME%\ lib\ tool.jar

5. Find Path as above and add% CLASSPATH% to Path

6. The environment variable is configured. Refer to the method of verifying the Java environment variable mentioned above, enter the dos command line, enter Java or Java-version, and get figure 1-1 or 1-2, indicating that the environment variable has been configured successfully.

At this point, the study on "how to configure Java jdk environment variables" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report