简体   繁体   English

在JDK8 / JRE8 + Eclipse Luna上进行Google App Engine开发

[英]Google App Engine development on JDK8/JRE8 + Eclipse Luna

Since JDK7/JRE7 is being retired/obsoleted/unsupported, I would like to work using JDK8. 由于JDK7 / JRE7已被淘汰/过时/不受支持,因此我想使用JDK8。 I work on Linux. 我在Linux上工作。

Is there a way to run Eclipse, compile WARs and deploy them in some kind of a Java SE 7 "compatibility mode"? 是否可以运行Eclipse,编译WAR并以某种Java SE 7“兼容模式”部署它们? That is, Eclipse runs, and compilation, packaging, etc. all happens in SE 7, but only JDK8 is installed? 也就是说,Eclipse运行,编译,打包等都发生在SE 7中,但是仅安装了JDK8吗?

EDIT: I started a more generic question here . 编辑:我在这里开始了一个更通用的问题。

You can set a compliance level in your project properties that will produce java7-compatible bytecode. 您可以在项目属性中设置符合性级别,以生成与Java7兼容的字节码。

If you a actually want to compile against the java7 standard library then you will have to install jdk7 somewhere (just the JDK, no need for making the JRE the system default!), configure it in eclipse as alternative java installation and configure your project to build against its standard library. 如果您确实想针对java7标准库进行编译,则必须将jdk7安装在某个地方(只需JDK,无需将JRE设置为系统默认值!),在eclipse中将其配置为替代java安装并将项目配置为根据其标准库构建。

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

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