Java version 1.7 required to Google Plugin on Eclipse

This is not related with iOS development but I have deployed the backend service for my iOS app on Google App Engine. This is about the steps for resolving the “JRE version is 1.6.0 1.7.0 or later is needed to run Google Plugin for Eclipse”.

201403191857.jpg

1. Download the latest JDK from oracle website – http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html.

2. For some reason the JDK installation folder on Mac was still referring to Java 1.6 and had to install this fix to get 1.7 folder – http://support.apple.com/kb/dl1572

201403191904.jpg

3. Then install the latest Google App Engine eclipse plugin using the Check for Updates on Eclipse.

4. I am not 100% sure whether app engine SDK needs to be installed on Mac even after installing eclipse plugin but I went with this step. Download latest app engine SDK for mac https://developers.google.com/appengine/downloads#Download_the_Google_App_Engine_SDK

5. The most important step of all is to edit eclipse.ini file and add -vm param with jdk 1.7 (marked in bold). Make sure this entry is the first vm entry in eclipse.ini file.

-startup

../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

–launcher.library

../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504

-product

org.eclipse.epp.package.jee.product

–launcher.defaultAction

openFile

-showsplash

org.eclipse.platform

–launcher.XXMaxPermSize

256m

–launcher.defaultAction

openFile

-vm

/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/server/libjvm.dylib

-vmargs

-Dosgi.requiredJavaVersion=1.5

-XstartOnFirstThread

-Dorg.eclipse.swt.internal.carbon.smallFonts

-XX:MaxPermSize=256m

-Xms40m

-Xmx512m

-Xdock:icon=../Resources/Eclipse.icns

-XstartOnFirstThread

-Dorg.eclipse.swt.internal.carbon.smallFonts


Comments

3 responses to “Java version 1.7 required to Google Plugin on Eclipse”

  1. hi , i stiil have the error above and I’m unable to create a project

    i have airbook os x 10.9.5

    please help

  2. Excellent advice. Was missing the vm parameters.

    Thanks for your post.

  3. @claud if you are unable to create a project because you don’t see it in the Eclipse its because you are missing Java 7 you can follow this post that I think should be able to help you. Also, once you sintall java 7 make sure you add GAE from the Eclipse marketplace.

    http://stackoverflow.com/questions/15688142/installed-eclipse-gwt-plugin-but-no-web-application-project/30007174?noredirect=1#comment48133158_30007174

    hope that helps.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.