简体   繁体   English

选择Java 7 JRE以使用Cloud Tools for Eclipse运行App Engine开发服务器

[英]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。

  1. First check if you have Java 7 installed on your system and environment variable are set correctly 首先检查您的系统上是否安装了Java 7并正确设置了环境变量
  2. Now coming to the Eclipse, Right Click On Your Project -> Java Compiler -> Set Compiler Compliance Level to 1.7 现在进入Eclipse, Right Click On Your Project -> Java Compiler -> Set Compiler Compliance Level to 1.7
  3. You can apply this setting for all the future projects by doing this '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.

相关问题 如何获取本地开发服务器中Google云存储上载文件的公共链接(Google App Engine + JAVA) - How to get public link for the uploaded file on google cloud storage in local dev server(Google App engine+JAVA) 使用Cloud Tools for Eclipse用p12文件部署App Engine应用 - Deploying App Engine app with p12 file using Cloud Tools for Eclipse 在 Mac 上使用 App Engine 时出现问题 Java JRE - Problem using App Engine on Mac Java JRE 授权App Engine Java Servlet在Eclipse中使用Cloud SQL - Authorizing App Engine Java Servlet to use Cloud SQL in eclipse App Engine Java-重新启动后未保存Dev服务器数据存储 - App engine Java - Dev server datastore not saved after restart Google App Engine,Java:在开发服务器被杀死之前执行操作 - google app engine, java: perform action before dev server is killed 在JDK8 / JRE8 + Eclipse Luna上进行Google App Engine开发 - Google App Engine development on JDK8/JRE8 + Eclipse Luna App Engine Cloud Endpoints框架(Java) - 在本地运行时出现NullPointerException - App Engine Cloud Endpoints Frameworks (Java) - NullPointerException when run locally 无法使用JRE 10运行简单的Java应用程序 - Unable to run simple Java app with JRE 10 在Eclipse中开发App Engine / Java项目时是否需要重启服务器? - Are server restarts necessary while developing an App Engine/Java project in Eclipse?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM