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

Operation methods for configuring java environment variables

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly shows you "how to configure java environment variables", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to configure java environment variables" this article.

JAVA_HOME variable setting

First, right-click computer to enter Properties, and then select Advanced system Settings.

Click "Environment variable" in "Advanced" to enter the environment variable editing interface.

In the system variable below, there is no JAVA_HOME variable, so we need to click New.

Variable name input: JAVA_HOME

(free video tutorials share: java video tutorials)

The variable value refers to the actual installation path (for example, the path of the editor is: C:\ Program Files\ Java\ jdk-9), and then click OK.

Path variable setting

Also in the system variable, we can see that the path variable already exists, so we just need to click "Edit" to enter the edit of the path variable.

The name of the variable remains the same, the value of the variable is changed to [% JAVA_HOME%\ bin;%JAVA_HOME%\ jre\ bin;], and then click OK.

Classpath variable setting

Similarly, there is no Classpath variable in the system variable. Click to enter [New]

Type [Classpath] for the variable name

For variable values, type [.;% JAVA_HOME%\ lib\ dt.jar;%JAVA_HOME%\ lib\ tools.jar;]

Note: don't leave out the symbols in the value of the variable, and finally click OK.

Test whether the environment configuration is successful

Don't forget to click OK step by step after completing the above three variables configuration.

Similarly, search for [cmd] in [start], and then type [java] and [javac], and the message shown in the figure indicates that the configuration is successful.

The above is all the contents of the article "how to configure java environment variables". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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