[英]Choose Java 7 JRE to run App Engine Dev Server with Cloud Tools for Eclipse
I try to run my maven App Engine project using Google Cloud Tools for Eclipse. 我尝试使用Google Cloud Tools for Eclipse运行我的maven App Engine项目。 Using "Run As > App Engine" as suggested in the docs results in the project being run in a Java 8 runtime (same as Eclipse uses).
按照文档中的建议使用“Run As> App Engine”会导致项目在Java 8运行时中运行(与Eclipse使用的相同)。 App Engine only supports Java 7. The only execution environment in the Eclipse installation is a Java 7 JRE.
App Engine仅支持Java 7. Eclipse安装中唯一的执行环境是Java 7 JRE。
How can I make the Dev Server use the Java 7 JRE? 如何让Dev Server使用Java 7 JRE?
Edit 编辑
Upgrading to Cloud Tools for Eclipse 1.1 did the trick; 升级到Eclipse Tools的Cloud Tools可以解决问题; it now looks for the JVM that is configured for the project.
它现在查找为项目配置的JVM。
Right Click On Your Project -> Java Compiler -> Set Compiler Compliance Level to 1.7
Right Click On Your Project -> Java Compiler -> Set Compiler Compliance Level to 1.7
'Window' Menu -> Java -> Compiler -> Set Compiler Compliance Level to 1.7
'Window' Menu -> Java -> Compiler -> Set Compiler Compliance Level to 1.7
将此设置应用于所有未来项目 Hope this helps. 希望这可以帮助。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.