Eclipse Neon HTTP 代理身份验证需要错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39576290/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:39:55  来源:igfitidea点击:

Eclipse Neon HTTP Proxy Authentication Required Error

eclipseproxy

提问by CoderInside

When I go to "Install new software" and select an update site or go to "Available Software Site" and click "Reload", I get a "HTTP Proxy Authentication Required" error.

当我转到“安装新软件”并选择更新站点或转到“可用软件站点”并单击“重新加载”时,出现“需要 HTTP 代理身份验证”错误。

I have searched the web, and I've tried the found suggestion like setting eclipse.iniwith

我已经在网上搜索,我一直在尝试,发现类似的建议设置eclipse.ini

-vmargs -Djava.net.preferIPv4Stack=true
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

I set the Neon link in an Helios version and it show the Available Software wihtout error.

我在 Helios 版本中设置了 Neon 链接,它显示可用软件而没有错误。

http://download.eclipse.org/releases/neon

http://download.eclipse.org/releases/neon

HTTP Proxy Authentication Required: http://download.eclipse.org/releases/neon/compositeContent.xmlHTTP Proxy Authentication Required: http://download.eclipse.org/releases/neon/compositeContent.xmlProxy Authentication Required

需要 HTTP 代理身份验证:http: //download.eclipse.org/releases/neon/compositeContent.xml 需要HTTP 代理身份验证:http: //download.eclipse.org/releases/neon/compositeContent.xml 需要代理身份验证

I've not config Eclipse to authenticate against any proxy.

我没有将 Eclipse 配置为针对任何代理进行身份验证。

Version: Neon Release (4.6.0) Build id: 20160613-1800

版本:Neon Release (4.6.0) 版本号:20160613-1800

Windows 7 64bit

视窗 7 64 位

How can I set it to work? I'm inside a company netword but I have also tried in my home with the same Laptop and the problem persist.

我怎样才能设置它工作?我在公司网络内,但我也在家里用同一台笔记本电脑尝试过,但问题仍然存在。

回答by CoderInside

Solve it adding to eclipse.ini

解决它添加到 eclipse.ini

Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4

and removing:

并删除:

Djava.net.preferIPv4Stack=true

回答by Vivit

I had the same problem with my Eclipse Neon.2 (4.6.2). I had no success whatsoever by specifying -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4in the eclipse.ini, as proposed here and in some other answerson StackOverflow. The only thing that helped me was to do the following. Go to "Windows""Preferences""General""Network Connections"and set "Active Provider"to "Direct", then confirm the new settings. After this I could successfully use Eclipse software update sites, as I wanted. All in all, my settings look like this:

我的Eclipse Neon.2 (4.6.2). 我没有通过-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4在 中指定eclipse.ini,如在此处提出的以及在StackOverflow 上的其他一些答案中指定而取得任何成功。唯一帮助我的是执行以下操作。转到"Windows""Preferences""General""Network Connections"并设置"Active Provider""Direct",然后确认新设置。在此之后,我可以根据需要成功使用 Eclipse 软件更新站点。总而言之,我的设置如下所示:

enter image description here

在此处输入图片说明

回答by Cob

You can install the software manually on eclipse, find a zip file online.

你可以在eclipse上手动安装软件,网上找一个zip文件。

Go to Help > Install New Software > Add > Archive and locate the zip file.

转至帮助 > 安装新软件 > 添加 > 存档并找到 zip 文件。

Make sure to untick the box "Contact all update sites during install to find required software" because if this is ticked it will give the "HTTP Proxy Authentication Required"

确保取消选中“安装期间联系所有更新站点以查找所需软件”框,因为如果选中它,它将提供“需要 HTTP 代理身份验证”