Reputation: 759
I have created a simple application using the Google App Engine
Environment
I was able to create a sample application and run it locally.
When I try to deploy it gives me an error
Error in eclipse
Deploying 'applicationname' to Google has encountered a problem. Unable to update app: The application contains Java 7 classes, but the --use_java7 flag has not been set.
See the deployment console for more details Unable to update app: The application contains Java 7 classes, but the --use_java7 flag has not been set.
The logs show
Unable to update: java.lang.RuntimeException: The application contains Java 7 classes, but the --use_java7 flag has not been set. at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:576) at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:370) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:53) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:433) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
I see someone has encountered the same error before
Failed to deploy to Google App Engine because --use_java7 flag has not been set
I installed JDK 6 but I could not get the application to work either.
What are my alternatives to getting the application to work? - some thoughts...
Use prior version of plug in?
Install JDK 6 by itself?
Some other options?
Upvotes: 0
Views: 2385
Reputation: 9116
You have to use JDK 6.
App Engine runs Java applications using the Java 6 virtual machine (JVM). The App Engine SDK supports Java 5 and later, and the Java 6 JVM can use classes compiled with any version of the Java compiler up to Java 6.
Upvotes: 1