Skip to content

Eclipse VM version #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Nov 11, 2014 · 5 comments
Closed

Eclipse VM version #179

ghost opened this issue Nov 11, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 11, 2014

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?

@paulvi
Copy link
Member

paulvi commented Nov 11, 2014

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

@ghost
Copy link
Author

ghost commented Nov 11, 2014

-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

@paulvi
Copy link
Member

paulvi commented Nov 11, 2014

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

@ghost
Copy link
Author

ghost commented Nov 11, 2014

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...

@ghost ghost closed this as completed Nov 11, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant