简体   繁体   English

IntelliJ 2016.3 GAE部署Java8 / 7

[英]IntelliJ 2016.3 GAE Deploy Java8/7

I'm new at IntelliJ and I created a new empty project(Google App Engine) and changed the bytecode level to 7, but I get this error in deployment: 我是IntelliJ的新手,我创建了一个新的空项目(Google App Engine),并将字节码级别更改为7,但是在部署中遇到此错误:

java.lang.IllegalArgumentException: Class file is Java 8 but max supported is Java 7: org/eclipse/jetty/apache/jsp/JettyJasperInitializer$1.class in C:\Recursos\appengine-java-sdk-1.9.48\jetty93\jetty-distribution\lib\apache-jsp\org.eclipse.jetty.apache-jsp-9.3.14.v20161028-nolog.jar
Unable to update app: Class file is Java 8 but max supported is Java 7: org/eclipse/jetty/apache/jsp/JettyJasperInitializer$1.class in C:\Recursos\appengine-java-sdk-1.9.48\jetty93\jetty-distribution\lib\apache-jsp\org.eclipse.jetty.apache-jsp-9.3.14.v20161028-nolog.jar

I found this answer GAE Deploy Java8/Java7 Error , but I can't find the pom file. 我找到了这个答案GAE Deploy Java8 / Java7 Error ,但是我找不到pom文件。

I have encountered the same problem after updating to appengine-java-sdk-1.9.48, and switching to 1.9.46 fixed the problem. 更新到appengine-java-sdk-1.9.48,并切换到1.9.46后,我遇到了相同的问题,从而解决了该问题。

You may download the 1.9.46 at https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.46.zip 您可以从https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.46.zip下载1.9.46。

HTH 高温超导

Using the IntelliJ plugin, one can deploy to the flex environment, using the 1.8 JDK, as documented on the IntelliJ IDEA Google Cloud Tools plugin documentation page. 使用IntelliJ插件,可以使用IntelliJ IDEA Google Cloud Tools插件文档页面上记录的1.8 JDK部署到Flex环境。

Still, to deploy in the app engine standard environment (not flex), one needs to choose the 1.7 version of the JDK, as documented on the "Setting up IntelliJ IDEA Ultimate Edition for Java Development and Debugging of App Engine Standard Environment Apps" page : “The Java SDK should be set to Java 7.” 尽管如此,要在App Engine标准环境(而非Flex)中进行部署,需要选择1.7版本的JDK,如“设置IntelliJ IDEA Ultimate Edition以进行App Engine标准环境Apps的Java开发和调试” 页面所述 :“ Java SDK应该设置为Java7。”

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

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