获取Eclipse IDE来显示它正在使用的Java RE版本 [英] Get Eclipse IDE to show version of Java RE it's using

查看:129
本文介绍了获取Eclipse IDE来显示它正在使用的Java RE版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了正确的JRE而不是OpenJDK,我想知道是否有一个简单的方法来找出Eclipse使用的是哪个?可能在帮助菜单或其他东西。

I've just installed proper JRE rather than the OpenJDK, I was wondering if there is an easy way to find out which RE Eclipse is using? Maybe in a help menu or something.

谢谢

推荐答案

到窗口>首选项> Java>已安装的JRE。检查的JRE是默认情况下使用的JRE。这个JRE用于编译和运行代码。

Go to Window > Preferences > Java > Installed JREs. The checked JRE is the one which Eclipse uses by default. This JRE is used to compile and run the code.

Eclipse使用的JRE自身运行是在 eclipse中指定的。 ini 或您的系统路径中的 java 可执行文件。从 Eclipse文档

The JRE used by Eclipse to run itself is the either the one specified in the eclipse.ini or the java executable in your system path. From the Eclipse docs:


查找JVM

Find the JVM

如果在eclipse / jre目录中安装了JVM,Eclipse将使用
;否则启动器将参考eclipse.ini文件和
系统路径变量。 Eclipse不要查阅JAVA_HOME
环境变量。

If a JVM is installed in the eclipse/jre directory, Eclipse will use it; otherwise the launcher will consult the eclipse.ini file and the system path variable. Eclipse DOES NOT consult the JAVA_HOME environment variable.

要显式指定您选择的JVM,可以使用-vm
命令行参数:

To explicitly specify a JVM of your choice, you can use the -vm command line argument:

eclipse -vm c:\jre\bin\javaw.exe''通过执行指定的java可执行文件启动Java

eclipse -vm c:\jre\bin\client\jvm.dll''通过在eclipse进程中加载​​jvm启动Java

eclipse -vm c:\jre\bin\javaw.exe ''start Java by executing the specified java executable
eclipse -vm c:\jre\bin\client\jvm.dll ''start Java by loading the jvm in the eclipse process

这篇关于获取Eclipse IDE来显示它正在使用的Java RE版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆