In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "what is the role of java environment variables", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's take a small series to take you to learn "what is the role of java environment variables"!
This tutorial operating environment: Windows 7 system, Java10 version, DELL G3 computer.
1、JAVA_HOME。Java installation directory. This is a rule, whether oracle, tomcat or other software that needs to use jdk, jrm, you can find this environment variable directly in the operating system. JAVA developed software, such as Eclipse/Tomcat, is found and used by searching JAVA_HOME variable installed JDK. If you do not configure the JAVA_HOME variable, you will find that Tomcat does not start properly.
PATH environment variable. Function is to specify java command search path. We need to add the bin directory in the jdk installation directory to the existing PATH variable, which contains frequently used executable files such as javac, javaw, etc. With PATH set, you can execute tools like javac/java in any directory. If you do not use these tools, you can only enter first.
The CLASPATH environment variable. It tells the Java execution environment where you can find the categories or packages you need for the Java program you want to execute. In general, its functionality is related to import and package keywords. The java source code we write certainly includes the tool categories provided by others. For example, if you write improtjava.util.*, When faced with the import keyword, the compiler needs to know where the categories you introduced into java.util are. As above, if you don't tell, it defaults to the current directory, how to tell? Set up CLASPATH.
After installing the java version, we will then configure the java environment. For beginners, some of these variables are entered manually.
Simple, just understand the basic concepts, you can write applications suitable for all kinds of situations.
2. Object Oriented.
3. Java is a web-oriented language.
4. Robust, java provides automatic garbage collection for memory management, preventing programmers from making mistakes when managing memory.
5. Security, Java used in networked, distributed environments must protect against viruses.
6. Architecture-neutral, it runs on any processor as long as the Java runtime system is installed.
7. Portability: Java can be easily ported to different machines on the network.
8. Java interpreter directly interprets and executes Java bytecode.
At this point, I believe that everyone has a deeper understanding of "what is the role of java environment variables", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.