2011-07-15 60 views
31

我想嘗試Google App Engine的Google Eclipse插件,但我在教程中遇到困難...Eclipse Google插件未啓動Web應用程序的服務器

我想開始從谷歌教程中的Web應用程序,但是當我點擊「運行方式> Web應用程序」,我只在控制檯上看到這樣一條消息:

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. 

什麼問題?似乎啓動服務器的命令是錯誤的,但我沒有編輯它...有人可以幫忙嗎?

+0

我有同樣的問題,但我瑤池本[此解決方案] [1] [1]:http://stackoverflow.com/quest離子/ 18042352/why-can-not-i-run -a-google-app-engine-project-on-localhost?answertab = votes#tab-top –

回答

76

這是因爲你的啓動配置文件(位置的這個鏈接過程:工作區/ .metadata/.plugins/org.eclipse.debug.core /.launches)損壞。您需要做的只是刪除現有的啓動配置(在運行>運行配置中)

+2

如果它在刪除啓動配置後仍然不起作用,重新啓動,對我有效:) –

+1

很酷,我花了2個小時檢查這個 –

+8

運行>運行配置> Web應用程序>右鍵單擊您的項目名稱>刪除 –

0

一些額外的信息已經說過了。

您需要安裝「m2eclipse」,否則您將不會有「run as」選項。

1

檢查您的Eclipse項目或GAE SDK是否在路徑中有空格。

1

在項目名稱中使用空格時會出現問題。

「運行配置>參數>程序參數」,在項目路徑中插入引號。即:

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

要:

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

我發現它從this thread

非常感謝

+0

哈哈,這有幫助!謝謝! –

相關問題