Reputation: 18353
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.
Thanks
Upvotes: 0
Views: 307
Reputation: 2748
I assume you want to know which version Eclipse uses to execute itself.
It would simply run with the same JRE that would execute when you issue java
from command line.
You can modify -vm
param in your eclipse.ini
file to run with some other JRE e.g.:
-vm
c:/Java/jdk1.6.0_16/bin
Upvotes: 1
Reputation: 23812
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.
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:
Find the JVM
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.
To explicitly specify a JVM of your choice, you can use the -vm command line argument:
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
Upvotes: 5
Reputation: 109264
If you want to know what JDK is being used to execute Eclipse: Help, About Eclipse SDK, Installation Details, tab Configuration
Upvotes: 4
Reputation: 115398
Sure. Go to Window/Preferences/Installed JREs, then choose one that you prefer.
You can also choose JRE on project level. Open project properties and choose "Java compiler". Then you can configure different JRE for specific project.
Upvotes: 1