How to check for the JRE version in eclipse?

41,106

Solution 1

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

About Eclipse dialog

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.

enter image description here

Solution 2

To see which Java Eclipse itself is using go to Help > About Eclipse click Installation Details and look at the Configuration tab.

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

Solution 3

Please see the following figure.

click on Run from menu bar ->select Run Configuration

Select JRE on tab

Share:
41,106

Related videos on Youtube

Suhail Gupta
Author by

Suhail Gupta

"There's nothing more permanent than a temporary hack." - Kyle Simpson "The strength of JavaScript is that you can do anything. The weakness is that you will." - Reg Braithwaite I am on internet Twitter @suhail3 E-mail [email protected]

Updated on March 14, 2020

Comments

  • Suhail Gupta
    Suhail Gupta over 4 years

    How to check which version of JRE the eclipse is using ?

    This section :

    Window--->Preferences--->Java

    shows by the name of JDK :

    enter image description here

  • Suhail Gupta
    Suhail Gupta over 10 years
  • Suhail Gupta
    Suhail Gupta over 10 years
  • T8Z
    T8Z over 10 years
    please click the Alternate JRE radio button
  • matbrgz
    matbrgz over 10 years
    This does not guarantee to tell which JVM Eclipse uses itself.
  • Suhail Gupta
    Suhail Gupta over 10 years
    In the tab that I have shown in the picture, why does it show jdk under the jre tab ? Value in home variable java.home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9/jre
  • T8Z
    T8Z over 10 years
    @ Suhail Gupta -> Some of the jdk include the jre
  • T8Z
    T8Z over 10 years
    @Thorbjørn Ravn Andersen -> Hello, yes this is not guarantee but it can know the jre version so I suggested this. Thank you for your comment.
  • matbrgz
    matbrgz over 10 years
    JDK's include JRE's. And the public source which Eclipse knows how to use.

Related