如何设置Eclipse的上网代理?eclipse么出现无法找到主类具体咋做10
不同版本的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=②⓪②.①⑧⑨.①②⑥.⑧⑥ -Dhttp.proxyPort=③①②⑧方式③:
如果你需要代理才能上网更新eclipse的话,请在启动eclipse时加上参数,例如:
eclipse.exe -vmargs -DproxySet=true -DproxyHost=aProxyAddress -DproxyPort=aProxyPort
其中aProxyAddress就是你的代理IP,aproxyPort是代理端口。
更新eclipse的方法是Help--Software Updates--Find and Install...
找不到 main() 吗?
检查你是不是没写啊!
public?
主类?
- 5星
- 4星
- 3星
- 2星
- 1星
- 暂无评论信息
