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

时间:2013-08-04 11:20:41

标签: 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.

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

2 个答案:

答案 0 :(得分:8)

在项目名称中使用空格时出现问题。

“运行配置&gt;参数&gt;程序参数”,在项目路径中插入引号。即:

--port=8888 --disable_update_check {PATH}\My Project

要:

--port=8888 --disable_update_check "{PATH}\My Project" 

答案 1 :(得分:2)

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

最后,你应该有类似的东西:Debug Configurations ...&gt; Web应用程序&gt; project1&gt;参数&gt;程序参数

--port=8888 /Users/user1/java/project1/war