Eclipse Google Plug-In 不会为 Web 应用程序启动服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6712270/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse Google Plug-In doesn't start server for web application
提问by Thomas Uhrig
I want to try the Google Eclipse plug-in for the Google App Engine, but I get stuck in the tutorial...
我想尝试 Google App Engine 的 Google Eclipse 插件,但是我在教程中卡住了...
I want to start the web application from the Google tutorial, but when I click on "RUN AS > Web Application", I only see this message on the console:
我想从 Google 教程中启动 Web 应用程序,但是当我单击“RUN AS > Web Application”时,我只在控制台上看到此消息:
Usage: <dev-appserver> [options] <war 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=root Overrides where the SDK is located.
--disable_update_check Disable the check for newer SDK versions.
What's the problem? It seems like the command to start the server is wrong, but I haven't edited it... can someone help?
有什么问题?似乎启动服务器的命令有误,但我还没有编辑它……有人可以帮忙吗?
回答by GoYun.Info
It is because your launch configuration file (location: WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches)is corrupt. All you need to do to solve this problem is to delete the existing launch configuration (in Run > Run configurations)
这是因为您的启动配置文件(位置:WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches)已损坏。解决此问题所需要做的就是删除现有的启动配置(在运行 > 运行配置中)
回答by TWiStErRob
Check if your Eclipse Project or GAE SDK has spaces in the path.
检查您的 Eclipse 项目或 GAE SDK 的路径中是否有空格。
回答by Md. Sajedul Karim
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.:
“运行配置>参数>程序参数”,在项目路径中插入引号。IE:
--port=8888 --disable_update_check {PATH}\My Project
To:
到:
--port=8888 --disable_update_check "{PATH}\My Project"
I found it from this thread
我是从这个线程找到的
Thanks a lot
非常感谢
回答by Martin Magakian
Some additional information to what's already been said.
已经说过的一些附加信息。
You need to install "m2eclipse" otherwise you will not have the "run as" option.
您需要安装“m2eclipse”,否则您将没有“run as”选项。