Java Eclipse Kepler error on startup on OS X machine

436 Views Asked by At

I did a clean install of OS X, now the installation of Eclipse Kepler won't work. On startup I get an error (before eclipse asks me what workspace to use). The error includes: Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.eclipse.osgi.internal.baseadaptor.BaseStorage (file:/Users/jodeneve/Downloads/eclipse/plugins/org.eclipse.osgi_3.9.0.v20130529-1710.jar) to method java.net.URLClassLoader.addURL(java.net.URL) WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.internal.baseadaptor.BaseStorage WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

Opening the log file I see that it uses java 9.0. (not what I want) I believe for it to work it needs to use an older version of java. Therefor I installed older versions and I use jenv to switch between them. e.g. jenv global 1.6 which changes the global java version used to 1.6, I check this using java -version. However opening eclipse still results in a log file saying it used java version 9. Any clues?

I need Kepler because I want to use plug in only available (or working) on Kepler or older eclipse versions.

1

There are 1 best solutions below

4
Tom M. On

Try changing the eclipse.ini file to point to the 1.6 path. Should look like this in the file:

-vm
C:\Java\JDK\1.6\bin\javaw.exe

More information on the eclipse.ini file can be found here: https://wiki.eclipse.org/Eclipse.ini