Google App Engine JSP 无法部署:java.lang.RuntimeException:无法获取系统 Java 编译器.请使用JDK,而不是JRE [英] Google App Engine JSP can't deploy: java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE

查看:33
本文介绍了Google App Engine JSP 无法部署:java.lang.RuntimeException:无法获取系统 Java 编译器.请使用JDK,而不是JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望这很简单,但是...除了部署到 GAE 之外,Eclipse 的所有工作都相对良好.

this is hopefully something simple but... Eclipse has been working relatively fine for everything except deploying to GAE.

我可以在本地运行我的 GAE 应用程序,但是当我尝试部署到 google 时,我收到以下消息:

I can run my GAE app locally, but when I try to deploy to google, I get this message:

java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.

我已将构建路径设置为 JDK.

I have set the build path to JDK.

尝试从多个系统(win7 和 win8)部署同一个项目时也会发生这种情况,所以我怀疑问题与项目本身有关.这个特定的项目已经存在并且已经在谷歌上运行了多年.

It also happens when trying to deploy the same project from more than one system (win7 and win8) so I suspect the problem is to do with the project itself. This particular project is existing and already running on google for years.

有趣的是,只有当我的应用程序中有 .jsp 文件要部署时才会出现此错误.如果我删除 jsp 文件,它会正确部署.(有点需要jsp文件)

Interesting that this error only shows up when I have .jsp files in my app to deploy. If I remove the jsp files, it deploys without error. (kinda need the jsp files tho)

谢谢

链接到我的构建路径的图像

推荐答案

我也遇到了同样的问题,强制Eclipse使用后能够部署成功我的 SDK 目录中的 JRE(Win 7 64 位).要强制 Eclipse 使用特定的 JRE,请参阅this.似乎 Eclipse 使用的 JVM,应用引擎产生的 JVM,&appconfig 使用的 JVM 应该都是一样的.希望这对您的情况也有帮助.

I had the same problem and was able to deploy successfully after forcing Eclipse to use the JRE within my SDK directory (Win 7 64bit). To force Eclipse to use a particular JRE see this. It seems that the JVM that Eclipse uses, the JVM that app engine spawns, & the JVM that appconfig uses should all be the same. Hope this helps w/ your situation as well.

这篇关于Google App Engine JSP 无法部署:java.lang.RuntimeException:无法获取系统 Java 编译器.请使用JDK,而不是JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆