不同版本的eclipse有不同的設(shè)置方法
方式一:
默認(rèn)的Eclipse 是不用代理上網(wǎng),但在一些公司的局域網(wǎng),需要使用代理上網(wǎng),
因而需要手工設(shè)置eclipse的上網(wǎng)設(shè)置
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中設(shè)置一下即可.
而一般的Web Service程序, 需要訪問網(wǎng)絡(luò)資源, 此時設(shè)置的代理是使得JAVA VM通過代理訪問,設(shè)置方式是: Run-->Run...-->(x=)Argument下面的VM Arguments下設(shè)置: -Dhttp.proxyHost=[代理IP地址] [空格] -Dhttp.proxyPort=[端口] 注:[]不需要加,如一個具體的實(shí)例如下: -Dhttp.proxyHost=202.189.126.86 -Dhttp.proxyPort=3128 方式三:
如果你需要代理才能上網(wǎng)更新eclipse的話,請?jiān)趩觘clipse時加上參數(shù),例如:
eclipse.exe -vmargs -DproxySet=true -DproxyHost=aProxyAddress -DproxyPort=aProxyPort
其中aProxyAddress就是你的代理IP,aproxyPort是代理端口。
更新eclipse的方法是Help-->Software Updates-->Find and Install...
|