2011-05-03 34 views
1

將eclispe Helios與Google應用插件配合使用。
我正在學習使用谷歌應用程序引擎,並試圖使演示中提供的留言。
當跑它作爲Web應用程序我得到了以下錯誤:使用應用引擎獲取權限被拒絕

 
May 3, 2011 3:16:59 PM com.google.appengine.tools.info.RemoteVersionFactory getVersion 
INFO: Unable to access https://appengine.google.com/api/updatecheck?runtime=java&release=1.4.0&timestamp=1291156877&api_versions=['1.0'] 
java.net.SocketException: Permission denied: connect 
    at java.net.PlainSocketImpl.socketConnect(Native Method)** 

請爲我提供了一個解決方案。

回答

1

它是因爲appengine無法檢查更新,所以你應該在eclipse中配置網絡設置以使用internet進行更新。但我不認爲這會阻止你運行你的應用程序。要了解更多關於eclipse中的網絡配置,你可以看看here。如果你在代理後面,確保你給你的代理ip地址和用戶名,如果需要密碼

1

解決方案:創建一個文件名稱:.appcfg_no_nag 在用戶路徑System.getProperty("user.home")

爲此,您可以使用命令 「重命名」:

C:\Users\tony>rename some_fyle.txt .appcfg_no_nag 

這禁用checkUpdate!