首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么我不能在localhost上运行google应用程序引擎项目?

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

Stack Overflow用户
提问于 2013-08-04 19:20:41
回答 2查看 1.8K关注 0票数 6

我正在使用macbook pro进行开发。我刚刚安装了eclipse indigo。Google app engine Java SDK为1.8.2。我正在尝试在localhost上运行一个appengine项目。但是我得到了以下错误:

代码语言:javascript
复制
 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.

我用谷歌搜索了很多,但我找到的任何解决方案对我都不起作用。我把app上传到appengine,然后用url打开它。它在那里运行得很好。谁能告诉我为什么它不能在我的mac上工作。提前谢谢。

EN

回答 2

Stack Overflow用户

发布于 2014-03-03 02:19:37

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

“运行Configurations>参数>程序参数”,在项目路径中插入引号。即:

代码语言:javascript
复制
--port=8888 --disable_update_check {PATH}\My Project

至:

代码语言:javascript
复制
--port=8888 --disable_update_check "{PATH}\My Project" 
票数 8
EN

Stack Overflow用户

发布于 2013-08-23 04:40:48

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

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

代码语言:javascript
复制
--port=8888 /Users/user1/java/project1/war
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18042352

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档