Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用经过身份验证的代理获取Eclipse代码_Java_Eclipse_Authentication_Proxy - Fatal编程技术网

Java 使用经过身份验证的代理获取Eclipse代码

Java 使用经过身份验证的代理获取Eclipse代码,java,eclipse,authentication,proxy,Java,Eclipse,Authentication,Proxy,我正试图让我在Eclipse中的Java代码通过经过身份验证的代理访问internet。我的代码只是使用 -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient -Dhttp.proxyPort=8080 -Dhttp.proxyHost=XXX -Dhttp.proxyUser=XXX -Dhttp.proxyPassword=XXX

我正试图让我在Eclipse中的Java代码通过经过身份验证的代理访问internet。我的代码只是使用

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=XXX
-Dhttp.proxyUser=XXX
-Dhttp.proxyPassword=XXX
-Dhttp.nonProxyHosts=localhost|127.0.0.1
我得到这个错误:

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=XXX
-Dhttp.proxyUser=XXX
-Dhttp.proxyPassword=XXX
-Dhttp.nonProxyHosts=localhost|127.0.0.1
线程“main”java.net.ConnectException中出现异常:连接超时:连接

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=XXX
-Dhttp.proxyUser=XXX
-Dhttp.proxyPassword=XXX
-Dhttp.nonProxyHosts=localhost|127.0.0.1
以下是我已经尝试过的东西: -在“首选项”中,设置HTTP和HTTPS代理,清除SOCKS,然后转到“手动” -在Eclipse.ini中,添加

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=XXX
-Dhttp.proxyUser=XXX
-Dhttp.proxyPassword=XXX
-Dhttp.nonProxyHosts=localhost|127.0.0.1

您需要知道,您正在设置的是运行Eclipse的JVM的设置。您的程序在另一个JVM中启动,这些设置不适用

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=XXX
-Dhttp.proxyUser=XXX
-Dhttp.proxyPassword=XXX
-Dhttp.nonProxyHosts=localhost|127.0.0.1
运行应用程序将创建启动配置,您可以打开该配置并添加所需的系统属性。然后,当启动配置启动时,它们将应用

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=XXX
-Dhttp.proxyUser=XXX
-Dhttp.proxyPassword=XXX
-Dhttp.nonProxyHosts=localhost|127.0.0.1

(另外,Eclipse在“首选项”窗口中有一个非常复杂的网络设置面板,您可以在其中为Eclipse本身配置该面板)。

您知道它是
-Dhttp.proxyHost
,而不是
Dhttp.proxyHost
?@ThorbjørnRavnAndersen是的,我知道,现在编辑到我的帖子中,你能为修改启动配置提供更具体的指导吗?
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=XXX
-Dhttp.proxyUser=XXX
-Dhttp.proxyPassword=XXX
-Dhttp.nonProxyHosts=localhost|127.0.0.1