简体   繁体   English

Java代理设置-Eclipse

[英]java proxy settings - eclipse

When I try to read an url from eclipse, it gives "java.net.ConnectException: Connection timed out: connect" error. 当我尝试从eclipse中读取url时,出现“ java.net.ConnectException:连接超时:connect”错误。 I assume that it is cause of proxy settings of eclipse is not same my browser. 我认为这是因为eclipse代理设置与我的浏览器不同。

I am coding from my company computer, so please let me know how I can make it same as my browser. 我正在使用公司的计算机进行编码,因此请让我知道如何使其与浏览器相同。

Thank you. 谢谢。

You have to configure proxy setting in eclipse too. 您也必须在eclipse中配置代理设置。

Go to Window --> Preference in you eclipse, 转到窗口->日食中的偏好,

under General menu, you could find Network connections, where you can configure proxy settings. 在常规菜单下,您可以找到网络连接,您可以在其中配置代理设置。

Unfortunately there is no way to add the wpad file as in modern Browsers (mozilla for example) but if you have this file you can search your prox name and the port and add it manually in eclipse settings like this: Eclipse proxy settings 不幸的是,没有像现代浏览器(例如mozilla)中那样添加wpad文件的方法,但是如果您有此文件,则可以搜索代理名称和端口,并在如下的Eclipse设置中手动添加它: Eclipse代理设置

you can use crt+F to find the proxy url in wpad file 您可以使用crt + F在wpad文件中找到代理网址

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM