0

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?

1 Answer 1

1

You have to use JDK 6.

Similar Question

Java Overview Docs

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks - I will try that and let you know

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.