为什么我不能在本地主机上运行谷歌应用程序引擎项目? [英] Why can not i run a google app engine project on localhost?

查看:165
本文介绍了为什么我不能在本地主机上运行谷歌应用程序引擎项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  2013-08-04 13:14:03.193 java [2146:707] [Java CocoaComponent兼容模式]:启用
2013-08-04 13:14:03.194 java [2146:707] [Java CocoaComponent兼容模式]:将SWT的超时设置为0.100000
用法:< dev-appserver> ; [options]< app directory>

选项:
--help,-h显示此帮助信息并退出。
--server = SERVER用于确定最新
-s SERVER SDK版本的服务器。
--address = ADDRESS本地计算机上接口的地址
- 要绑定的ADDRESS(或所有接口的0.0.0.0)。
--port = PORT在本地机器上绑定的端口号。
-p PORT
--sdk_root = DIR覆盖SDK所在的位置。
--disable_update_check禁用对较新SDK版本的检查。
--generated_dir = DIR设置生成文件的目录。
--jvm_flag = FLAG将FLAG作为JVM参数传递。可能会重复
提供多个标志。

我搜索了很多,但是我找到的任何解决方案都不适合我。我上传了应用程序在appengine上,并使用url打开它。它的工作很好。任何人都可以告诉我为什么它不能在我的Mac上运行。提前致谢。

解决方案

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

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

   -  port = 8888 --disable_update_check {PATH} \我的项目
   -  port = 8888 --disable_update_check{PATH} \我的项目


I am using macbook pro for development. I just installed eclipse indigo. Google app engine Java SDK is 1.8.2. I am trying to run an appengine project on localhost. 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. I uploaded app on appengine and opened it using url. And its working fine there. Can anybody tell me why is it not working on my 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. i.e.:

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

To:

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

这篇关于为什么我不能在本地主机上运行谷歌应用程序引擎项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆