Closed ghost closed 9 years ago
There are millions of Eclipse users, and this is very basic feature, there is hardly a bug.
What is your full eclipse.ini
content?
As for -Dosgi.requiredJavaVersion=1.6
it is OSGI stuff, and not about what JDK to use
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
Have you read https://wiki.eclipse.org/Eclipse.ini ?
add 2 lines before -vmargs
like
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
Reading you I understood the VM version Eclipse was using was actually specified in eclipse.ini so I looked to make sure the changes I made at system level to use 1.8 were visible in there but they are not.
Now I understand the -vm argument could be used only to select a different VM - but I don't need that...
This issue could be a platform issue but the -vm argument is not set like it should according to this: https://wiki.eclipse.org/Eclipse.ini
I am using Eclipse Luna on MacOS X Yosemite with Java 1.6 and 1.8 installed.
After I installed 1.8 I assumed Eclipse will use it but I might be wrong as this is not set in eclipse.ini.
The -vm argument reads like this:
-vmargs
And on the line below I can read this:
-Dosgi.requiredJavaVersion=1.6
So it might be using Java 1.6 - how do I know?
Is it not possible to select a VM from Eclipse preferences instead of hacking eclipse.ini?