Get the Eclipse IDE to show the Java RE version using

I just installed the proper JRE, not OpenJDK, I was wondering if there is an easy way to find out which Eclipse RE is using? Maybe in the help menu or something like that.

thanks

0
source share
4 answers

Go to window> Settings> Java> Installed JREs. A validated JRE is the one that Eclipse uses by default. This JRE is used to compile and run code.

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

Find JVM

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

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

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

+5
source

If you want to know which JDK is used to run Eclipse: Help, About the Eclipse SDK, Installation Details, Configuration tab

+3
source

Sure. Go to the / Preferences / Installed JRE window, then select the one you prefer.

You can also select JRE at the project level. Open the project properties and select Java Compiler. You can then configure various JREs for a specific project.

+1
source

I assume that you want to know which version of Eclipse uses to execute itself.

It just starts with the same JRE that will be executed when java from the command line.

You can change the -vm parameter in the eclipse.ini file to work with some other JREs, for example:

 -vm c:/Java/jdk1.6.0_16/bin 
+1
source

All Articles