GAE:无法获取系统Java编译器。请使用JDK,而不是JRE [英] GAE: Cannot get the System Java Compiler. Please use a JDK, not a JRE

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

问题描述

试图将我的应用程序部署到Google App Engine服务器时,出现以下错误:
无法获取系统Java编译器。请使用JDK,而不是JRE。

我所见过的所有解决方案都涉及编辑eclipse配置文件,但我没有使用eclipse。我从dos提示符执行appcfg.cmd。我有一个jdk安装,我的JAVA_HOME指向它:
c:\program files\java\jdk1.6.0_43



显然appcfg.cmd不是在看JAVA_HOME。它必须从其他地方获取JDK位置。



任何想法? 确保JDK在你的PATH中是第一个。


When trying to deploy my application to the Google App Engine server I get the following error: Cannot get the System Java Compiler. Please use a JDK, not a JRE.

All solutions I've seen for this involve editing an eclipse configuration file, but I'm not using eclipse. I'm executing appcfg.cmd from the dos prompt. I have a jdk installed and my JAVA_HOME is pointing to it: c:\program files\java\jdk1.6.0_43

Obviously appcfg.cmd is not looking at JAVA_HOME. It must be getting the JDK location from somewhere else.

Any ideas?

解决方案

As noted in the comments: Make sure the JDK is FIRST in your PATH.

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

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