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