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 parse the sequential mechanism of Eclipse searching for JVM

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

Share

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

This article shows you how to analyze the sequence mechanism of Eclipse's search for JVM. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

If you don't have any JRE installed on your machine (or JDK, which is not distinguished in this article), clicking eclipse.exe will mistakenly report that you can't find JRE. At this point, you can install a JRE, or copy the JRE directory directly to the eclipse installation directory.

You can specify a different version of JRE for each project in Eclipse, such as Project A compiled using JDK1.4 and Project B compiled using JDK1.5. This version of JDK is not directly related to Eclipse running JRE.

The JDK version of the project is easy to modify, so what about any JRE used to start a specified Eclipse?

The order in which Eclipse's JVM starts to look for JRE is: if the-vm parameter is configured in eclipse.ini, then use the JRE; specified in this parameter. Otherwise, check whether there is a JRE folder under the eclipse installation directory. If so, use this JRE;. Otherwise, go to the system to find the installed JRE, and report an error if you can't find it.

So if you don't want to uninstall other JDK, there are two ways: (1) copy the JRE folder you want to use directly to the Eclipse directory, which is a common method for lazy people. (2) modify the eclipse.ini file, add the-vm parameter, specify the address of the virtual machine to run, and use the-vm command line argument example:-vm c:\ jre\ bin\ javaw.exe.

The above is how to analyze the sequential mechanism of Eclipse's search for JVM. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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