Java 6 applications are prevented from being deplo

2019-06-20 02:41发布

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.

3条回答
贪生不怕死
2楼-- · 2019-06-20 02:46

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

查看更多
老娘就宠你
3楼-- · 2019-06-20 03:02

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.

查看更多
姐就是有狂的资本
4楼-- · 2019-06-20 03:11

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

查看更多
登录 后发表回答