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

孤街浪徒 提交于 2019-12-10 13:37:22

问题


When i tried to deploy the Java 6 application in App engine. 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. Even after, app engine deployment throw same error.

How to fix this issue.


回答1:


I finally fix this issue by installing Eclipse 4.3 Kepler and App Engine SDK 1.9.2.

Install Latest Eclipse 4.3

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

Install Latest Google Eclipse Plugin

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




回答2:


Create a new small Java 7 project that deploys and runs successfully. 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.




回答3:


If you use Eclipse, check at Preferences>Java>Compiler. The JDK Compliance is (on my laptop) not updated to the version 1.7



来源:https://stackoverflow.com/questions/22300795/java-6-applications-are-prevented-from-being-deployed-to-google-app-engine-from

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!