简体   繁体   English

Eclipse 3.5无法安装插件

[英]Eclipse 3.5 Unable to install plugins

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"!!! 我真的不知道Eclipse 3.5(3.5.0或3.5.1,同样的问题)发生了什么,但现在已经2天了,我正在努力寻找一种方法让插件安装通过“安装新软件屏幕”!!! 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. 我访问了很多论坛和博客,尝试了许多解决方案,但都是徒劳的:每次当前问题都消失了,并且出现了新的问题。

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 . 到目前为止,我得到的最好建议是关于NTLM代理的已知问题: 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: 我提供了提示,但现在我有一条新的错误消息: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$2.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.5 ,或http://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 . 无法在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 . 无法在http://download.eclipse.org/technology/epp/packages/galileo/site.xml上读取存储库。 Server redirected too many times (20) 服务器重定向次数太多(20)

the solution is: add following lines to your eclipse.ini file (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

Use the following setting and you will be all set. 使用以下设置,您将全部设置。 Go to Window --> Preference --> General --> Network Connection --> select Direct from drop down 转到窗口 - >首选项 - >常规 - >网络连接 - >从下拉列表中选择直接 在此输入图像描述

Couple of weeks ago I stumbled upon a Problem with Java and a MySQL-Connection. 几周前,我偶然发现了Java和MySQL-Connection的问题。 The Problem being that no Connection could be established. 问题在于无法建立连接。 Anyway, the fix was to add -Djava.net.preferIPv4Stack=true to the command line. 无论如何,修复是将-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. 我刚刚在eclipse.ini中添加了相同的一行,结果证明,它也为我解决了这个问题。 The option name is pretty self-explainitory: It prefers the IPv4 stack over the IPv6 stack. 选项名称非常自我解释:它优先于IPv6堆栈上的IPv4堆栈。 So this solution may not be viable for everyone. 所以这个解决方案对每个人都不可行。

I had a similar problem setting up eclipse. 我有一个类似的问题设置日食。

I changed: NATIVE connection to MANUAL and cleared the proxy settings for SOCKS in Windows -> Preferences -> General -> Network connection . 我更改了:NAUAL连接到MANUAL并清除了Windows SOCKS的代理设置- > Preferences - > General - > Network connection That fixed the problem for me. 这解决了我的问题。

I had a similar problem setting up eclipse in the office. 我在办公室里设置了类似的问题。 I had set up the for HTTP, HTTPS and SOCKS in: 我在以下位置设置了HTTP,HTTPS和SOCKS:

Window>pref>general>network connections Window> pref> general>网络连接

Clearing the proxy settings for SOCKS fixed the problem for me. 清除SOCKS的代理设置为我解决了问题。

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来解决它。

I had similar problem. 我有类似的问题。 I changed Direct connection to Native and it worked. 我改变了直接连接到Native并且它工作了。

Preferences → General → Network Connections. 首选项→常规→网络连接。

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. 也许它解释了,为什么在最后的日子里有点困难。

我不得不关闭我的个人防火墙和Windows防火墙,最终它也起作用了。

I meet the same questions in 3.7 on ubuntu 12.04. 我在ubuntu 12.04上的3.7中遇到了同样的问题。 My Os use a proxy 127.0.0.1,and the eclipse use another proxy 192.168.1.1. 我的Os使用代理127.0.0.1,eclipse使用另一个代理192.168.1.1。

I read the .log for info. 我读了.log的信息。 It says !MESSAGE System property http.proxyHost is set to 127.0.0.1 but should be 192.168.1.1. 它说!MESSAGE系统属性http.proxyHost设置为127.0.0.1但应该是192.168.1.1。

so I change the eclipse net work setting to the same as the system . 所以我将eclipse网络设置更改为与系统相同。 At last,it works. 最后,它的工作原理。

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(伽利略)打了好几天,我不得不使用这个版本,因为我正在进行黑莓开发,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!!!! 而且我能够通过我的公司代理!!!!

I also faced the same problem while working with eclips Neon. 使用eclips Neon时我也遇到了同样的问题。 It got fixed after editing the .ini file with following content: 在使用以下内容编辑.ini文件后,它已得到修复:

>    -Dhttp.proxyPort=8080

>    -Dhttp.proxyHost=myproxy

>    -Dhttp.proxyUser=mydomain\myusername

>    -Dhttp.proxyPassword=mypassword

>    -Dhttp.nonProxyHosts=localhost|127.0.0.1

>    -Djava.net.preferIPv4Stack=true

Note: Sometime it may also caused due to the issue with your Network configuration and device. 注意:有时也可能是由于网络配置和设备问题引起的。 So conform first that your windows firewall is allowing to connect your eclips to the outer world (internet). 因此首先要确保您的Windows防火墙允许将您的eclips连接到外部世界(Internet)。 (Turn off the windows firewall for the instance of time that your computer take to install the file). (关闭计算机安装文件所用时间的Windows防火墙)。

In my eclipse Luna faced the same issue because of this URL https://sourceforge.net/projects/restfulplugin/files/site/ 在我的日食中,由于这个URL,Luna面临同样的问题https://sourceforge.net/projects/restfulplugin/files/site/

So i just Disabled the URL that was Shown in the Error From the Available Software Sites. 所以我只是禁用了可用软件站点错误中显示的URL。

You may Check the URL or Try with the Updated URL reg to that Exception :) 您可以检查URL或尝试使用更新的URL注册到该例外:)

I was getting the error while trying to connect for updates. 我在尝试连接更新时遇到错误。 Just did as in the above answer - 就像上面的回答一样 -

Window -> Preferences -> General -> Network 窗口 - > 首选项 - > 常规 - > 网络

There the default provider was set as Native. 默认提供程序设置为Native。 I changed it to direct as my laptop didn't need to connect to any proxy. 我将其更改为直接,因为我的笔记本电脑不需要连接到任何代理。

Applied and it is working fine. 应用,它工作正常。

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. 规格:在macbook pro上赢得7 x64。 The broken eclipse was galileo, and 1 of 4 installations on my machine at the time - the others were all working. 破碎的日食是伽利略,当时我的机器上有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. 我找到了一个答案,说要获得eclipse的更新,这将解决问题。 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说没有更新,但由于某些原因我无法理解,我的插件现在可以安装了。

... more anecdotal evidence of a problem, and a possible solution, however strange ... ...更多关于问题的轶事证据,以及可能的解决方案,无论多么奇怪......

Its the Windows OS that make the problem. 它是解决问题的Windows操作系统。 I got the same problem. 我遇到了同样的问题。 Then I tried some other app which use JavaVM to connect the internet, and they fails. 然后我尝试了一些其他使用JavaVM连接互联网的应用程序,但它们都失败了。 Try update JRE, you will notice it. 尝试更新JRE,你会注意到它。 If JRE cannot update itself, then there is some socket inaccessibility that prevent internet access apart from using native windows API. 如果JRE无法自行更新,那么除了使用本机Windows API之外,还有一些套接字不可访问性会阻止Internet访问。 I reinstall Win7 and it fixed the problem. 我重新安装Win7并修复了问题。

finally I got eclipse 3.7 working behind company firewall. 最后我让eclipse 3.7在公司防火墙后面工作。 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). 我在位于“C:\\ Program Files \\ Java \\ jre6 \\ lib”的文件“net.properties”上设置为true“java.net.useSystemProxies”选项(此路径可能与您的JRE安装不同)。 After that,set Active provider to Native on Eclipse preferences. 之后,在Eclipse首选项上将Active provider设置为Native。 No need to provide any proxy details anywhere, it just pick it up from system default browser settings 无需在任何地方提供任何代理详细信息,只需从系统默认浏览器设置中获取即可

There is no need of doing such hectic stuffs. 没有必要做这样繁忙的事情。 Find in your system where there is "SDK Manager".(incase of windows). 在您的系统中查找“SDK Manager”。(包括Windows)。 Suppose your sdk manager is in E:\\Android-9. 假设你的sdk经理在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管理器;它将自动开始从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". 一句话的解决方案是“不要使用eclipse进行下载;直接使用Android sdk管理器,你的问题就解决了”。 Let me know if you have any futhur queries on this issue. 如果您对此问题有任何疑问,请与我们联系。

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

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