简体   繁体   English

无法更新应用程序:无法编译JSP文件

[英]Unable to update app: Failed to compile JSP Files

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". 我正在尝试在App Engine上首次部署应用程序,并且我收到错误消息“无法更新应用程序:无法编译JSP文件”。 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. 我已经将eclipse设置为指向Windows / Preferences / Java / Installed JRE中的JDK1.6.0_17。 My JAVA_HOME is currently set to "C:\\Program Files\\Java\\jdk1.6.0_17". 我的JAVA_HOME当前设置为“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: 我还编辑了“appengine-java-sdk-1.4.2 \\ bin”文件夹中的appcfg.cmd文件,如下所示:

@"%JAVA_HOME%"\\bin\\java -cp "%~dp0\\..\\lib\\appengine-tools-api.jar" com.google.appengine.tools.admin.AppCfg %*

Any ideas why this is happening? 任何想法为什么会这样?

Thanks 谢谢

You probably have both a JRE and a JDK and Eclipse uses the JRE when deploying which is the problem. 您可能同时拥有JRE和JDK,Eclipse在部署时使用JRE是问题所在。 It should use the JDK. 它应该使用JDK。 Uninstall the JRE (using the Programs and Features control panel). 卸载JRE(使用“程序和功能”控制面板)。 Make sure your path is set to the JDK. 确保您的路径设置为JDK。 If you don't see it add it in the PATH variable. 如果你没有看到它将它添加到PATH变量中。 It should be something like: c:\\Program Files\\java\\jdk\\bin. 它应该是这样的:c:\\ Program Files \\ java \\ jdk \\ bin。 Adapt it based on your own config. 根据您自己的配置调整它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM