为什么我不能在localhost上运行谷歌应用程序引擎项目?

Pis*_*ean 6 google-app-engine swt dev-appserver

我正在使用macbook pro进行开发.我刚刚安装了eclipse indigo.Google应用引擎Java SDK是1.8.2.我想在localhost上运行一个appengine项目.但我收到以下错误:

 2013-08-04 13:14:03.193 java[2146:707] [Java CocoaComponent compatibility mode]: Enabled
 2013-08-04 13:14:03.194 java[2146:707] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
 Usage: <dev-appserver> [options] <app directory>

 Options:
  --help, -h                 Show this help message and exit.
  --server=SERVER            The server to use to determine the latest
  -s SERVER                   SDK version.
  --address=ADDRESS          The address of the interface on the local machine
  -a ADDRESS                  to bind to (or 0.0.0.0 for all interfaces).
  --port=PORT                The port number to bind to on the local machine.
  -p PORT
  --sdk_root=DIR             Overrides where the SDK is located.
  --disable_update_check     Disable the check for newer SDK versions.
  --generated_dir=DIR        Set the directory where generated files are created.
  --jvm_flag=FLAG            Pass FLAG as a JVM argument. May be repeated to
                          supply multiple flags.
Run Code Online (Sandbox Code Playgroud)

我google了很多,但我找到的任何解决方案都不适合我.我在appengine上传了app并使用url打开它.它的工作正常.任何人都可以告诉我为什么它不能在我的Mac上工作.提前致谢.

dip*_*old 8

在项目名称中使用空格时会发生此问题.

"运行配置>参数>程序参数",在项目路径中插入引号.即:

--port=8888 --disable_update_check {PATH}\My Project
Run Code Online (Sandbox Code Playgroud)

至:

--port=8888 --disable_update_check "{PATH}\My Project" 
Run Code Online (Sandbox Code Playgroud)


小智 2

我遇到了同样的问题。奇怪的是,默认参数不正确。删除第一个和第三个元素,它就可以工作了。

最后,您应该在以下位置看到类似的内容:调试配置... > Web 应用程序 > project1 > 参数 > 程序参数

--port=8888 /Users/user1/java/project1/war
Run Code Online (Sandbox Code Playgroud)