Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
448 views
in Technique[技术] by (71.8m points)

java - Failed to deploy to Google App Engine because --use_java7 flag has not been set

------------ Deploying frontend ------------

Preparing to deploy: Created staging directory at: 'C:UsersADMINI~1AppDataLocalTempappcfg2555411734473986257.tmp' java.lang.RuntimeException: The application contains Java 7 classes, but the --use_java7 flag has not been set.

Debugging information may be found in C:UsersAdministratorAppDataLocalTempappengine-deploy7182870224187999057.log

Debug Log:

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'm attempting to deploy a google app to my google app engine account and eclipse is giving me this error. It seems rather straight forward, but I can't find where to set a flag for java7.

I'm using the latest version of Eclipse (Juno Service Release 1) and my google plugin is 4.2.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...