简体   繁体   English

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

[英]Why can not i run a google app engine project on localhost?

I am using macbook pro for development. 我正在使用macbook pro进行开发。 I just installed eclipse indigo. 我刚刚安装了eclipse indigo。 Google app engine Java SDK is 1.8.2. Google应用引擎Java SDK是1.8.2。 I am trying to run an appengine project on localhost. 我想在localhost上运行一个appengine项目。 But i am getting the following error: 但我收到以下错误:

 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.

I googled a lot but any solution i found did not work for me. 我google了很多,但我找到的任何解决方案都不适合我。 I uploaded app on appengine and opened it using url. 我在appengine上传了app并使用url打开它。 And its working fine there. 它的工作正常。 Can anybody tell me why is it not working on my mac. 任何人都可以告诉我为什么它不能在我的Mac上工作。 Thanks in advance. 提前致谢。

The problem occurs when using blank spaces in the project name. 在项目名称中使用空格时会发生此问题。

"Run Configurations> Arguments > Program Arguments", insert quotation marks in the project path. “运行配置>参数>程序参数”,在项目路径中插入引号。 ie: 即:

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

To: 至:

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

I got the same problem. 我遇到了同样的问题。 Strangely, the default arguments are incorrect. 奇怪的是,默认参数不正确。 Remove the first and the third element and it works. 删除第一个和第三个元素,它的工作原理。

Finally, you should have something like that under: Debug Configurations... > Web Application > project1 > Arguments > Program Arguments 最后,你应该有类似的东西:Debug Configurations ...> Web Application> project1> Arguments> Program Arguments

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

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

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