Eclipse:MarketplaceDiscoveryStrategy 失败并出现错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12715215/
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-19 19:08:09  来源:igfitidea点击:

Eclipse: MarketplaceDiscoveryStrategy failed with an error

eclipseeclipse-marketplace

提问by rdiazroman

I've just installed Eclipse Helios version 3.6.1 on my Windows 7 64 bits machine. But, when I want to open Eclipse MarketPlace I get this error:

我刚刚在我的 Windows 7 64 位机器上安装了 Eclipse Helios 3.6.1 版。但是,当我想打开 Eclipse MarketPlace 时,出现此错误:

MarketplaceDiscoveryStrategy failed with an error.

MarketplaceDiscoveryStrategy 因错误而失败。

Unable to read repository at 
http://marketplace.eclipse.org/api/p?product=org.eclipse.epp.package.jee.product&os=win32&runtime.version=3.6.0.v20100505&client=org.eclipse.epp.mpc.core&java.version=1.7.0_07&product.version=1.3.2.20110218-0812&ws=win32. 
Address family not supported by protocol family: connect

Any solution please?

请问有什么解决办法吗?

回答by user2852071-Santhosh

You can solve u r problem like this, In Eclipse IDE go to Windows --> preference --> General --> Network Connection --> Select Active provider to Direct --> Apply --> Ok.

您可以像这样解决您的问题,在 Eclipse IDE 中转到 Windows --> 首选项 --> 常规 --> 网络连接 --> 选择 Active provider to Direct --> Apply --> Ok。

回答by labrat

Uninstall current version of Java. Go to www.java.com, download recommended version of java. After successful install. Verify java installed (located on home page - www.java.com). Should work then... Mine did.

卸载当前版本的 Java。访问www.java.com,下载推荐的java版本。安装成功后。验证 java 已安装(位于主页 - www.java.com)。应该工作然后......我的。

回答by Snehal Masne

Add below args :

添加以下参数:

-Djava.net.preferIPv4Stack=true

-Djava.net.preferIPv4Stack=true

to the end of the eclipse.ini file and it should work.

到 eclipse.ini 文件的末尾,它应该可以工作。

回答by Makoton

I have the same problem and it occurs when you download Eclipse Standard 4.3.1. You have to download Eclipse IDE for Java EE Developers.

我有同样的问题,当您下载Eclipse Standard 4.3.1时会发生这种情况。您必须为 Java EE 开发人员下载Eclipse IDE