简体   繁体   English

无法从任何版本的SDK将Java 6应用程序部署到Google App Engine

[英]Java 6 applications are prevented from being deployed to Google App Engine from any version of the SDK

When i tried to deploy the Java 6 application in App engine. 当我尝试在App引擎中部署Java 6应用程序时。 I got error like 我得到了错误

Java 6 applications are prevented from being deployed to Google App Engine from any    
version of the SDK, including older ones. If you need to continue to deploy Java 6 
applications for compatibility reasons, you can request that your application be 
whitelisted for Java 6 deployment by visiting link.

Then i changed java version 1.7 in project settings. 然后我在项目设置中更改了java 1.7版。 Even after, app engine deployment throw same error. 即使之后,app引擎部署也会抛出相同的错误。

How to fix this issue. 如何解决这个问题。

I finally fix this issue by installing Eclipse 4.3 Kepler and App Engine SDK 1.9.2. 我最后通过安装Eclipse 4.3 Kepler和App Engine SDK 1.9.2解决了这个问题。

Install Latest Eclipse 4.3 安装最新的Eclipse 4.3

https://www.eclipse.org/downloads/ https://www.eclipse.org/downloads/

Install Latest Google Eclipse Plugin 安装最新的Google Eclipse插件

https://developers.google.com/eclipse/docs/getting_started https://developers.google.com/eclipse/docs/getting_started

Create a new small Java 7 project that deploys and runs successfully. 创建一个新的小型Java 7项目,该项目可以成功部署和运行。 Copy your existing application content into the new project. 将现有应用程序内容复制到新项目中。 Rename the old project to use it as an archive. 重命名旧项目以将其用作存档。 Rename the new project to use the original project name and application id. 重命名新项目以使用原始项目名称和应用程序ID。

If you use Eclipse, check at Preferences>Java>Compiler. 如果使用Eclipse,请查看Preferences> Java> Compiler。 The JDK Compliance is (on my laptop) not updated to the version 1.7 JDK Compliance(在我的笔记本电脑上)未更新到1.7版

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM