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

查看:156
本文介绍了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目录(Win 7 64bit)中使用
JRE之前成功部署。要强制Eclipse使用特定的JRE,请参阅。看来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天全站免登陆