from: http://blog.csdn.net/qq635785620/article/details/8191799
不同版本的eclipse有不同的設置方法
方式一:
默認的Eclipse 是不用代理上網,但在一些公司的局域網,需要使用代理上網, 因而需要手工設置eclipse的上網設置 window-->preferences-->general-->network connections 選中 manual proxy configuration: 依次填入http proxy , port就ok 了。 另外,如果代理需要用帳號和密碼就需要選中 Enable proxy authentication, 然后填上 user name 及password 取消,ok
方式二:
通常的升級,只需要在window->preferences->Install/Update:Proxy Settings中設置一下即可.
而一般的Web Service程序, 需要訪問網絡資源, 此時設置的代理是使得Java VM通過代理訪問,設置方式是:
Run-->Run...-->(x=)Argument下面的VM Arguments下設置:
-Dhttp.proxyHost=[代理IP地址] [空格] -Dhttp.proxyPort=[端口]
注:[]不需要加,如一個具體的實例如下:
-Dhttp.proxyHost=202.189.126.86 -Dhttp.proxyPort=3128
方式三:
如果你需要代理才能上網更新eclipse的話,請在啟動eclipse時加上參數,例如: eclipse.exe -vmargs -DproxySet=true -DproxyHost=aProxyAddress -DproxyPort=aProxyPort 其中aProxyAddress就是你的代理IP,aproxyPort是代理端口。 更新eclipse的方法是Help-->Software Updates-->Find and Install...