简体   繁体   中英

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". 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.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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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