On my Mac OS-X Mavericks, I had the Eclipse Java Enterprise Ed Helios version with JRE 1.6 installed.
I updated my Eclipse version to Eclipse Kepler Java Enterprise Edition (Eclipse Kelpler v 4.3)
Then I installed Google App Engine components (Basically downloaded and install Google Pugin for Kepler ... from https://developers.google.com/eclipse/docs/install-eclipse-4.3)
When I started up the new Eclipse Kepler I got the following error (screenshot below) indicating my JRE (v 1.6) was out-of-date and I need version 1.7.0+
So I downloaded the latest JDK v 1.8 from http://www.oracle.com/technetwork/java/javase/downloads/index.html
I installed this with step by step instructions from: http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
I set the SDK version in Eclipse by going to Preferences->Java->Installed JREs (and navigating to the folder containing the new JRE)
However when I restart Eclipse I still get the same error ie (JRE needs to be 1.7.0 or above)
**** Any ideas what setting I am missing or what else I need to set? ****
Here's a running log and screenshots of things I have tried:
Screenshots of latest system preference (java) settings and Eclipse java preferences:
And here are the contents of eclipse.ini
-startup ../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm /Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/server/libjvm.dylib
-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
UPDATE: I edited my eclipse.ini to ensure that the -vm specification for jvm 1.7 was across two lines as suggested by @manouti
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/server/libjvm.dylib
And now when I start eclipse the get this different error. Checking online it appears I need to add some capabilities to the JVM init file ....
I checked the following blog http://burrsutter.blogspot.com/2013/12/eclipse-does-not-contain.html and per recommendations posted there, I updated the capabilities section of my JVM 7 info.plist file as follows:
<key>JVMCapabilities</key>
<array>
<string>CommandLine</string>
<string>JNI</string>
<string>BundleApp</string>
<string>WebStart</string>
<string>Applet</string>
</array>
That blog also recommends a different value for the -vm option in the eclipse.ini ...
Also set the java version to 1.7 at startup, by adding the following line to ~/.bash_profile
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
Still get the capabilities error above "does not contain the JNI_CreateJavaVM symbol"
I tried changing the -vm line in eclipse.ini to that recommended in burrsutter's blog http://burrsutter.blogspot.com/2013/12/eclipse-does-not-contain.html i.e. set -vm in eclipse.ini to:
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin/java
With this I continue to get the capabilities error shown above ...
also tried
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java
... With this the original error comes back i.e. "JRE version is 1.6.0 version 1.7.0 or later is needed"