Java 如何在eclipse中检查JRE版本?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22385457/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 15:27:12  来源:igfitidea点击:

How to check for the JRE version in eclipse?

javaeclipseeclipse-kepler

提问by Suhail Gupta

How to check which version of JREthe eclipse is using ?

如何检查JRE使用的是哪个版本的eclipse?

This section :

这个部分 :

Window--->Preferences--->Java

窗口--->首选项--->Java

shows by the name of JDK :

以 JDK 的名称显示:

enter image description here

在此处输入图片说明

回答by harshit

Goto Window->Preference->Installed JRES

转到窗口->首选项->已安装的 JRES

or Goto Project , right click Preference -> Jva Build Path -> libraries

或 Goto Project ,右键单击 Preference -> Jva Build Path -> libraries

回答by T8Z

Please see the following figure.

请看下图。

click on Run from menu bar ->select Run Configuration

单击菜单栏中的运行 ->选择运行配置

Select JRE on tab

在选项卡上选择 JRE

回答by greg-449

To see which Java Eclipse itself is using go to Help > About Eclipseclick Installation Detailsand look at the Configurationtab.

要查看哪个 Java Eclipse 本身正在使用,Help > About Eclipse请单击Installation Details并查看Configuration选项卡。

When you run Java programs from Eclipse you can select which Java is used. Preferences > Installed JREslists the JREs (and JDKs) that Eclipse knows about. The Run Configurationfor the program shows which Java is used to run the program.

当您从 Eclipse 运行 Java 程序时,您可以选择使用哪种 Java。Preferences > Installed JREs列出了 Eclipse 知道的 JRE(和 JDK)。在Run Configuration该程序显示其使用Java来运行程序。

回答by Thorbj?rn Ravn Andersen

Open the About Eclipse dialog (Help -> About Eclipse on Windows, Eclipse -> About Eclipse on OS X)

打开关于 Eclipse 对话框(Help -> About Eclipse on Windows,Eclipse -> About Eclipse on OS X)

About Eclipse dialog

关于 Eclipse 对话框

Click "Installation Details", choose the Configuration tab, and scroll down to the "java.home" entry. The value is the path name to the JVM used.

单击“安装详细信息”,选择“配置”选项卡,然后向下滚动到“java.home”条目。该值是所用 JVM 的路径名。

enter image description here

在此处输入图片说明