Java Eclipse 3.5 无法安装插件

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

Eclipse 3.5 Unable to install plugins

javaeclipseideeclipse-3.5

提问by SirFabel

I really don't know what's going on with Eclipse 3.5 (3.5.0 or 3.5.1, same issues), but it's been now 2 days that I'm struggling with Eclipse to find a way to make the plugins installation work via the "Install New Software screen"!!! I have visited a lot of forums and blogs, tried many solutions but in vain: each time the current problem disappears and a new one appears.

我真的不知道 Eclipse 3.5(3.5.0 或 3.5.1,同样的问题)发生了什么,但是现在我已经 2 天了,我一直在与 Eclipse 一起努力寻找一种方法来使插件安装工作通过“安装新软件画面”!!!我访问了很多论坛和博客,尝试了很多解决方案,但徒劳无功:每次当前问题消失,新问题出现。

I'm trying to make it work at my office, so behind proxy. The best advice I got so far is the one regarding the known issue with NTLM proxies: http://wiki.eclipse.org/ECF_Filetransfer_Support_for_NTLMv2_Proxies. I put in place the hint, but now I have a new error message: Eclipse cannot find the repositories at all... For instance here is what I get now with the Galileo update site itself:

我试图让它在我的办公室工作,所以在代理后面。到目前为止,我得到的最好建议是关于 NTLM 代理的已知问题:http: //wiki.eclipse.org/ECF_Filetransfer_Support_for_NTLMv2_Proxies。我放置了提示,但现在我有一条新的错误消息:Eclipse 根本找不到存储库...例如,这是我现在使用 Galileo 更新站点本身得到的信息:

org.eclipse.equinox.internal.provisional.p2.core.ProvisionException: No repository found at http://download.eclipse.org/releases/galileo.
    at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:380)
    at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:606)
    at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
    at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:88)
    at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.loadMetadataRepository(ProvisioningUtil.java:88)
    at org.eclipse.equinox.internal.provisional.p2.ui.QueryableMetadataRepositoryManager.doLoadRepository(QueryableMetadataRepositoryManager.java:55)
    at org.eclipse.equinox.internal.provisional.p2.ui.QueryableRepositoryManager.loadRepository(QueryableRepositoryManager.java:195)
    at org.eclipse.equinox.internal.provisional.p2.ui.QueryableRepositoryManager.loadAll(QueryableRepositoryManager.java:108)
    at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler.run(PreloadingRepositoryHandler.java:71)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Samething with http://download.eclipse.org/eclipse/updates/3.5, or http://download.eclipse.org/tools/mylyn/update/e3.4/and whatever the site: no one works.

http://download.eclipse.org/eclipse/updates/3.5http://download.eclipse.org/tools/mylyn/update/e3.4/以及任何站点相同:没有人工作。

Please somebody help!

请有人帮忙!

PS: Some more details below:

PS:下面有更多细节:

I have the same issue with third party software too... for instance: http://www.epic-ide.org/updates/testing/site.xml.... same error message.

我对第三方软件也有同样的问题......例如:http: //www.epic-ide.org/updates/testing/site.xml....相同的错误消息。

If I go to Preferences > Install / Updates > Available Software Sites, click on whatever the site and on Test Connection I get a ProvisionException with this error message (when I click on details):

如果我转到首选项 > 安装/更新 > 可用软件站点,单击任何站点,然后在测试连接上我收到一条带有此错误消息的 ProvisionException(当我单击详细信息时):

Unable to read repository at http://download.eclipse.org/technology/epp/packages/galileo/site.xml. Unable to read repository at http://download.eclipse.org/technology/epp/packages/galileo/site.xml. Server redirected too many times (20)

无法在http://download.eclipse.org/technology/epp/packages/galileo/site.xml读取存储库。无法在http://download.eclipse.org/technology/epp/packages/galileo/site.xml读取存储库。服务器重定向次数过多 (20)

the solution is:add following lines to your eclipse.inifile (before -vmargs): (verified on 3.5 ; 3.5.1; 3.6.2)

解决方案是:将以下几行添加到您的eclipse.ini文件中(之前-vmargs):(在 3.5 上验证;3.5.1;3.6.2)

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=myproxy
-Dhttp.proxyUser=mydomain\myusername
-Dhttp.proxyPassword=mypassword
-Dhttp.nonProxyHosts=localhost|127.0.0.1

采纳答案by vdr

We had tons of issues here, namely with the proxy support. We ended-up using Pulse: http://www.poweredbypulse.com/

我们在这里遇到了很多问题,即代理支持。我们最终使用了 Pulse:http: //www.poweredbypulse.com/

Pulse has built-in support for a few plugin, however, you can add third-party plugin and even local jar file quite easily.

Pulse 内置了对一些插件的支持,但是,您可以很容易地添加第三方插件甚至本地 jar 文件。

Strangely it does not always use the built-in Eclipse feature, so sometimes when Eclipse become difficult ( like in our case for the proxy business ), you can work-around it with Pulse.

奇怪的是,它并不总是使用内置的 Eclipse 功能,所以有时当 Eclipse 变得困难时(就像我们的代理业务案例),您可以使用 Pulse 来解决它。

回答by gia

Have you read this post?

你读过这篇文章吗?

http://eclipsewebmaster.blogspot.ch/search?q=wow-what-a-painful-release-this-was-is

http://eclipsewebmaster.blogspot.ch/search?q=wow-what-a-painful-release-this-was-is

Maybe it explains, why it was kinda difficult the last days.

也许它解释了,为什么最后几天有点困难。

回答by Michael Z.

Couple of weeks ago I stumbled upon a Problem with Java and a MySQL-Connection. The Problem being that no Connection could be established. Anyway, the fix was to add -Djava.net.preferIPv4Stack=trueto the command line.

几周前,我偶然发现了 Java 和 MySQL 连接的问题。问题是无法建立连接。无论如何,修复是添加-Djava.net.preferIPv4Stack=true到命令行。

I just added the same line to eclipse.ini and as it turns out, it also fixes this issue for me. The option name is pretty self-explainitory: It prefers the IPv4 stack over the IPv6 stack. So this solution may not be viable for everyone.

我刚刚在 eclipse.ini 中添加了同一行,事实证明,它也为我解决了这个问题。选项名称不言自明:它更喜欢 IPv4 堆栈而不是 IPv6 堆栈。所以这个解决方案可能并不适合所有人。

回答by Sam

I had a similar problem setting up eclipse in the office. I had set up the for HTTP, HTTPS and SOCKS in:

我在办公室设置 eclipse 时遇到了类似的问题。我已经为 HTTP、HTTPS 和 SOCKS 设置了:

Window>pref>general>network connections

窗口>首选项>常规>网络连接

Clearing the proxy settings for SOCKS fixed the problem for me.

清除 SOCKS 的代理设置为我解决了这个问题。

回答by robert walker

i fought with eclipse 3.5.0 (galileo) for days, i had to use this version because I am doing blackberry development and eclipse comes bundle with blackberry specifics so i need to use the package they bundled, which was not 3.5.0 (not the 3.5.1) , BUT SirFabel saved the day, thanks to all who contributed to this post

我与 eclipse 3.5.0 (galileo) 斗争了好几天,我不得不使用这个版本,因为我正在做黑莓开发,而 eclipse 捆绑了黑莓的细节,所以我需要使用他们捆绑的包,这不是 3.5.0(不是3.5.1) ,但是 SirFabel 挽救了这一天,感谢所有为这篇文章做出贡献的人

I used 3.5.0 and did "Set the following system property in you eclipse.ini file: -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient For more details on this: wiki.eclipse.org/… - Configure only the HTTP and HTTPS proxies. Not SOCKS!! "

我使用了 3.5.0 并做了“在你的 eclipse.ini 文件中设置以下系统属性:-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient 有关此的更多详细信息: wiki.eclipse.org/... - 只配置 HTTP 和 HTTPS 代理。不是 SOCKS!!”

and I am able to get through my companies proxy!!!!

我可以通过我的公司代理!!!!

回答by Richard Le Mesurier

Just to add to this as I have had problems with an install of eclipse on my machine.

只是为了补充一点,因为我在我的机器上安装 eclipse 时遇到了问题。

Specs: Win 7 x64 on macbook pro. The broken eclipse was galileo, and 1 of 4 installations on my machine at the time - the others were all working.

规格:在 macbook pro 上赢得 7 x64。损坏的日食是伽利略,当时我机器上的 4 个安装中有 1 个 - 其他都在工作。

I was not running proxy, so above solution in the question did not work.

我没有运行代理,因此问题中的上述解决方案不起作用。

I found an answer that said to get updates for eclipse, and that would fix things. I tried this, and eclipse said there were no updates, but then for some reason I can't understand, my plugins could now install.

我找到了一个答案,说要获取 eclipse 的更新,这会解决问题。我试过了,eclipse 说没有更新,但是由于某种原因我无法理解,我的插件现在可以安装了。

... more anecdotal evidence of a problem, and a possible solution, however strange ...

...更多关于问题的轶事证据,以及可能的解决方案,无论多么奇怪......

回答by karim

Its the Windows OS that make the problem. I got the same problem. Then I tried some other app which use JavaVM to connect the internet, and they fails. Try update JRE, you will notice it. If JRE cannot update itself, then there is some socket inaccessibility that prevent internet access apart from using native windows API. I reinstall Win7 and it fixed the problem.

它是造成问题的 Windows 操作系统。我遇到了同样的问题。然后我尝试了其他一些使用 JavaVM 连接互联网的应用程序,但它们失败了。尝试更新 JRE,您会注意到它。如果 JRE 无法自我更新,那么除了使用本机 Windows API 之外,还有一些套接字不可访问性会阻止 Internet 访问。我重新安装了Win7,它解决了问题。

回答by Ratul

There is no need of doing such hectic stuffs. Find in your system where there is "SDK Manager".(incase of windows). Suppose your sdk manager is in E:\Android-9. Go to that path double click the SDK manager ;it will automatically start to download from https://dl-ssl.google.com/../..

没有必要做这么忙碌的事情。在您的系统中找到“SDK 管理器”。(在 Windows 的情况下)。假设您的 sdk 管理器位于 E:\Android-9 中。转到该路径,双击 SDK 管理器;它将自动开始从https://dl-ssl.google.com/../下载 ..

Initially you will se it is failing. On the window that appears there will be 'settings' menu. Click on that set the proxy and port. and it will start downloading.

最初你会看到它失败了。在出现的窗口上会有“设置”菜单。单击设置代理和端口。它将开始下载。

The solution in one sentence is "Don't use eclipse for the download;directly use Android sdk manager and your problem is resolved". Let me know if you have any futhur queries on this issue.

一句话的解决办法是“下载不要用eclipse,直接用Android sdk manager解决你的问题”。如果您对此问题有任何疑问,请告诉我。

回答by Delcasda

finally I got eclipse 3.7 working behind company firewall. I set to true "java.net.useSystemProxies" option on file "net.properties" located on "C:\Program Files\Java\jre6\lib" (this path could be different for your JRE installation). After that,set Active provider to Native on Eclipse preferences. No need to provide any proxy details anywhere, it just pick it up from system default browser settings

最后我让 eclipse 3.7 在公司防火墙后面工作。我将位于“C:\ 之后,在 Eclipse 首选项中将 Active provider 设置为 Native。无需在任何地方提供任何代理详细信息,只需从系统默认浏览器设置中获取即可

回答by Mike

Use the following setting and you will be all set. Go to Window --> Preference --> General --> Network Connection --> select Direct from drop downenter image description here

使用以下设置,您将大功告成。转到窗口 --> 首选项 --> 常规 --> 网络连接 --> 从下拉菜单中选择直接在此处输入图片说明