Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法更新应用程序:无法获取系统Java编译器。请使用JDK,而不是JRE。盖伊_Java_Google App Engine_Google Apps_Google Apps Marketplace - Fatal编程技术网

无法更新应用程序:无法获取系统Java编译器。请使用JDK,而不是JRE。盖伊

无法更新应用程序:无法获取系统Java编译器。请使用JDK,而不是JRE。盖伊,java,google-app-engine,google-apps,google-apps-marketplace,Java,Google App Engine,Google Apps,Google Apps Marketplace,我正在尝试将一个GAE java项目上传到google app engine。当我从命令行运行命令时 sudo ./appcfg.sh update /home/ritesh/MarketPlace/helloworld-java-2011050303/target/exploded 它给了我错误日志 Beginning interaction for module default... 0% Created staging directory at: '/tmp/appcfg7358649

我正在尝试将一个GAE java项目上传到google app engine。当我从命令行运行命令时

 sudo ./appcfg.sh update /home/ritesh/MarketPlace/helloworld-java-2011050303/target/exploded
它给了我错误日志

Beginning interaction for module default...
0% Created staging directory at: '/tmp/appcfg7358649622384760069.tmp'
5% Scanning for jsp files.
8% Compiling jsp files.

Error Details:
Aug 31, 2013 12:55:14 AM org.apache.jasper.JspC processFile
INFO: Built File: /index.jsp
Aug 31, 2013 12:55:14 AM org.apache.jasper.JspC processFile
INFO: Built File: /support.jsp
Aug 31, 2013 12:55:14 AM org.apache.jasper.JspC processFile
INFO: Built File: /WEB-INF/jsp/hello.jsp


java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Unable to update app: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Please see the logs [/tmp/appcfg77694933863265627.log] for further information.
有谁能告诉我如何摆脱这个错误吗?? 当我运行javac-version时,它的输出是

javac 1.7.0_11
当我运行java版本时,它给了我

java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1)
OpenJDK Server VM (build 23.7-b01, mixed mode)
有谁能告诉我如何摆脱这个错误吗

我遵循这个教程


PS this appcfg.sh位于eclipse/plugin目录中

您在box上安装了什么:JRE或JDK或两者都安装了?您所说的box是什么意思?我们Google为Google Apps Marketplace发布了一个新体验。我们还有新的。本教程不再是最新的或有效的。可能是的副本