无法更新应用程序:无法编译JSP文件 [英] Unable to update app: Failed to compile JSP Files

查看:112
本文介绍了无法更新应用程序:无法编译JSP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在App Engine上首次部署应用程式,并收到「无法更新应用程式:无法编译JSP档案」错误。任何人都有任何想法,如何可以解决这个问题。我已经设置eclipse指向JDK1.6.0_17在Windows / Preferences / Java / Installed JREs。我的JAVA_HOME当前设置为C:\Program Files\Java\jdk1.6.0_17。我还在appengine-java-sdk-1.4.2 \bin文件夹中编辑了appcfg.cmd文件,如下所示:

I'm trying to deploy an App for the first time on the App Engine and i'm getting an error saying "Unable to update app: Failed to compile JSP Files". Anyone have any ideas how can i fix this. I've set up eclipse to point to JDK1.6.0_17 in Windows/Preferences/Java/Installed JREs. My JAVA_HOME is currently set to "C:\Program Files\Java\jdk1.6.0_17". I've also edited the appcfg.cmd file in the "appengine-java-sdk-1.4.2\bin" folder to look like the following:

@%JAVA_HOME%\bin\java -cp%〜dp0\..\lib\appengine-tools-api.jarcom.google.appengine.tools.admin.AppCfg %*

任何想法为什么会发生这种情况?

Any ideas why this is happening?

>

推荐答案

您可能有一个JRE和一个JDK,Eclipse在部署时使用JRE,这是问题。它应该使用JDK。卸载JRE(使用程序和功能控制面板)。确保您的路径设置为JDK。如果你没有看到它添加它在PATH变量。它应该是这样的:c:\Program Files\java \jdk\bin。根据您自己的配置适配。

You probably have both a JRE and a JDK and Eclipse uses the JRE when deploying which is the problem. It should use the JDK. Uninstall the JRE (using the Programs and Features control panel). Make sure your path is set to the JDK. If you don't see it add it in the PATH variable. It should be something like: c:\Program Files\java\jdk\bin. Adapt it based on your own config.

这篇关于无法更新应用程序:无法编译JSP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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