简体   繁体   English

运行google-app-engine演示时出错

[英]Error running google-app-engine demo

I have installed Google application engine following instructions here: http://code.google.com/appengine/docs/java/gettingstarted/installing.html 我已经按照以下说明安装了Google应用程序引擎: http : //code.google.com/appengine/docs/java/gettingstarted/installing.html

However, running dev_appserver.cmd script causes strange errors: 但是,运行dev_appserver.cmd脚本会导致奇怪的错误:

/C/Program Files/appengine-java-sdk-1.3.5/bin/dev_appserver.cmd: line 1: @java:
command not found
/C/Program Files/appengine-java-sdk-1.3.5/bin/dev_appserver.cmd: line 2: com.goo
gle.appengine.tools.KickStart: command not found
/C/Program Files/appengine-java-sdk-1.3.5/bin/dev_appserver.cmd: line 3: com.goo
gle.appengine.tools.development.DevAppServerMain: command not found

Same thing happens on WindowsXP 32bit and Windows7 64bit, when running using Windows dos prompt window, and under GNU bash, version 3.1.0(3)-release (i686-pc-msys) shell. 在使用Windows dos提示窗口运行的WindowsXP 32bit和Windows7 64bit上,以及在GNU bash版本3.1.0(3)-release(i686-pc-msys)Shell下,也会发生相同的情况。

Environment variables: 环境变量:

APP_ENGINE_HOME=/C/Program Files/appengine-java-sdk-1.3.5
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16

Any suggestions what maybe wrong? 有什么建议可能有什么问题吗?

I highly doubt that the Bash shell is capable of understanding the .cmd script syntax. 我非常怀疑Bash shell是否能够理解.cmd脚本语法。

If you want to use a Bash shell, you should be able to run dev_appserver.sh , which is bundled with the SDK as well as the .cmd version. 如果要使用Bash shell,则应该能够运行dev_appserver.sh ,它与SDK以及.cmd版本捆绑在一起。

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

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