gpt4 book ai didi

java - 无法部署到 Google App Engine,因为尚未设置 --use_java7 标志

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:31:07 26 4
gpt4 key购买 nike

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

Preparing to deploy: Created staging directory at: 'C:\Users\ADMINI~1\AppData\Local\Temp\appcfg2555411734473986257.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:\Users\Administrator\AppData\Local\Temp\appengine-deploy7182870224187999057.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)

我正在尝试将谷歌应用部署到我的谷歌应用引擎帐户,但 Eclipse 给我这个错误。看起来很简单,但我找不到在哪里为 java7 设置标志。

我使用的是最新版本的 Eclipse(Juno Service Release 1),我的 google 插件是 4.2。

最佳答案

显示了相关的系统级属性here : com.google.apphosting.runtime.use_java7

它可以像这样传递到 appCfg.sh 中:

appcfg.sh --use_java7 update

关于java - 无法部署到 Google App Engine,因为尚未设置 --use_java7 标志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13848495/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com