简体   繁体   English

安装GAE插件以与Eclipse配合使用时出现问题

[英]Issue installing GAE plugin to work with Eclipse

I'm trying to make a Google App Engine App, but whenever I try to run the app, I get the following message: 我正在尝试制作Google App Engine应用程序,但是每当我尝试运行该应用程序时,都会收到以下消息:

Errors occurred during the build. 构建期间发生错误。 Errors running builder 'Google App Engine Project Validator' on project 'ScalaWagsGameServer'. 在项目“ ScalaWagsGameServer”上运行构建器“ Google App Engine项目验证器”时出错。 Unable to locate the JVM for project ScalaWagsGameServer. 无法找到项目ScalaWagsGameServer的JVM。 Please verify that you have a project-level JVM installed by inspecting your project's build path. 请通过检查项目的构建路径来验证您是否安装了项目级JVM。 Unable to locate the JVM for project ScalaWagsGameServer. 无法找到项目ScalaWagsGameServer的JVM。 Please verify that you have a project-level JVM installed by inspecting your project's build path. 请通过检查项目的构建路径来验证您是否安装了项目级JVM。

I've tried installing a new JDK and JRE, but nothing has changed anything. 我尝试安装新的JDK和JRE,但没有任何改变。 I've been trying to set the %JAVA_HOME% environment variable as well, which is what I saw should be done on other Stack Overflow questions, but everything I change it to is said to be undefined. 我也一直在尝试设置%JAVA_HOME%环境变量,这是我看到的应该在其他Stack Overflow问题上完成的工作,但是我将其更改为的所有内容都未定义。

Try out the following: 尝试以下方法:

  • Assuming that you have installed the JDK on your machine. 假设您已经在计算机上安装了JDK。 Ensure that from the terminal or command prompt, you can access your JDK (javac, etc). 确保从终端或命令提示符下可以访问JDK(javac等)。 Ensure the correct environment variables are setup. 确保设置了正确的环境变量。

  • Inside of Eclipse, go to Preferences->Java->Installed JREs and validate if you have linked to the correct JDK or not. 在Eclipse内部,转到Preferences->Java->Installed JREs并验证是否已链接到正确的JDK。 Most likely the list is empty here or its not linked to your installed JDK. 该列表很可能在此处为空,或者未链接到已安装的JDK。

问题是该项目在错误的目录中。

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

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