Eclipse Kepler 未通过代理连接到互联网

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

Eclipse Kepler not connecting to internet via proxy

eclipseproxyeclipse-kepler

提问by cho

I have managed to get Eclipse Juno connecting to the internet. For this to accomplish, there are many posts here on stackoverflow. here is one of this links: Eclipse not connecting to internet via proxy

我已经设法让 Eclipse Juno 连接到互联网。为此,stackoverflow 上有很多帖子。这是链接之一: Eclipse not connected to internet via proxy

Today i installed Eclipse Kepler on my Windows7 box. But accessing the eclipse marketplace or installing new software does not work. I am using exactly the same proxy configuration as i used for Eclipse Juno. Juno can access the marketplace but Kepler does not. The proxy uses NTLM Authentification. Any one here with similar problem?

今天我在我的 Windows7 机器上安装了 Eclipse Kepler。但是访问 eclipse 市场或安装新软件不起作用。我使用的代理配置与用于 Eclipse Juno 的代理配置完全相同。Juno 可以访问市场,但 Kepler 不能。代理使用 NTLM 身份验证。这里有人有类似问题吗?

No success til now. I am still wondering why Juno can connect whereas Kepler can not:-(

到现在都没有成功。我仍然想知道为什么 Juno 可以连接而 Kepler 不能:-(

回答by mhanada

I had same issue. I searched and found this.

我有同样的问题。我搜索并找到了这个。

http://oakgreen.blogspot.jp/2011/10/eclipse-proxy-settings-bug-and.html

http://oakgreen.blogspot.jp/2011/10/eclipse-proxy-settings-bug-and.html

This post says don't set SOCKS proxy. I tried this advice, and connection was succeeded. I did below:

这篇文章说不要设置 SOCKS 代理。我尝试了这个建议,连接成功。我在下面做了:

  1. Open Network Connection Settings.
  2. Select Active Provider to "Manual".
  3. Set HTTP/HTTPS proxy.
  4. Clear SOCKS proxy if this is set.(select SOCKS proxy row and click "Clear" button)
  5. Restart Eclipse to apply these settings.
  1. 打开网络连接设置。
  2. 选择 Active Provider 到“Manual”。
  3. 设置 HTTP/HTTPS 代理。
  4. 如果已设置,则清除 SOCKS 代理。(选择 SOCKS 代理行并单击“清除”按钮)
  5. 重新启动 Eclipse 以应用这些设置。

回答by satbot

I spent hours trying to use this method suggested by mhanada and although it is correct and should have worked the default Secure Storage associated with eclipse was preventing my proxy credentials from being saved. I advise: Be wary of exceptions being thrown regarding Secure Storage. In my case the errors related to being unable to connect to a remote location where the default secure storage path was. In my case I just deleted the Default Secure Storage information via Preferences > General > Security > Secure Storage > Contents > Delete.

我花了几个小时尝试使用 mhanada 建议的这种方法,虽然它是正确的并且应该可以工作,但与 eclipse 关联的默认安全存储阻止了我的代理凭据被保存。我建议:警惕有关安全存储的异常。在我的情况下,与无法连接到默认安全存储路径所在的远程位置相关的错误。就我而言,我只是通过首选项 > 常规 > 安全 > 安全存储 > 内容 > 删除删除了默认安全存储信息。

回答by ziodraw

In my case I set it to "native" settings where socks was enabled for proxy. (Internet Explorer->Internetoptions->Connections->LAN-Settings->Proxy Settings). After disabling it there and adding the following lines to eclipse.ini everything works well:

就我而言,我将其设置为“本机”设置,其中为代理启用了袜子。(Internet Explorer->Internetoptions->Connections->LAN-Settings->Proxy Settings)。在那里禁用它并将以下行添加到 eclipse.ini 后一切正常:

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
-Dorg.eclipse.ecf.provider.filetransfer.retrieve.closeTimeout=3000
-Dorg.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=3000

回答by Lucas

In my case the problem started after installing the Spring Tool Suite. Uninstalling it solved the problem.

在我的情况下,问题是在安装 Spring Tool Suite 后开始的。卸载它解决了问题。

Version: Kepler Service Release 1

版本:开普勒服务第 1 版

回答by Jeroen Roosen

A friend of mine ran into that exact problem (fresh machine with a fresh eclipse Kepler installation, the computer was not behind a firewall or proxy.) It turned out to be an issue with Java 7 update 51, when we used a Java 6 JRE to run eclipse the problem was magically solved.

我的一个朋友遇到了那个确切的问题(新机器安装了新的 eclipse Kepler,计算机没有防火墙或代理。)当我们使用 Java 6 JRE 时,结果是 Java 7 update 51 的问题运行 eclipse 问题神奇地解决了。

回答by JimmyB

Another note:

另一个注意事项:

After changing my Windows password, eclipse's Windows-integrated secure storage seemed to have become inaccessible without notice. Apparently this not only made eclipse 'forget' my proxy auth settings but also prevented it from storing the credentials after I set them up again. I could configure them any way I wanted but as soon as I clicked "OK" they were gone again.

更改我的 Windows 密码后,eclipse 的 Windows 集成安全存储似乎变得无法访问,而无需通知。显然,这不仅使 Eclipse '忘记'了我的代理身份验证设置,而且在我再次设置凭据后也阻止了它存储凭据。我可以按我想要的任何方式配置它们,但是一旦我单击“确定”,它们又消失了。

The solution for me was to go to General > Security > Secure Storage and click on "Change Password..." for the Windows Integration master password provider. Of course, this wiped all passwords previously stored by eclipse, but it left me with a clean, working Secure Storage and allowed me to successfully set up and store the proxy credentials again.

我的解决方案是转到“常规”>“安全”>“安全存储”,然后单击 Windows 集成主密码提供程序的“更改密码...”。当然,这会擦除 eclipse 之前存储的所有密码,但它给我留下了一个干净、有效的安全存储,并允许我再次成功设置和存储代理凭据。

回答by Pascal

It happened to me because eclipse was using JRE and not JDK.

它发生在我身上,因为 eclipse 使用的是 JRE 而不是 JDK

To force eclipse to use a given VM, edit

要强制 eclipse 使用给定的 VM,请编辑

<eclipse_root>\eclipse.ini

and add those 2 lines at the top of the file:

并在文件顶部添加这两行:

 -vm
 C:/Program Files/Java/jdk1.6.0_45/bin/javaw.exe

Note: Eclipse using JRE was triggering a:

注意:使用 JRE 的 Eclipse 触发了:

java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket

java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket

 java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket
    at org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:45)
    at org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:294)
    at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:445)
    at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:274)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
    at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:263)
    at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
 Caused by: java.lang.ClassNotFoundException: javax.net.ssl.SSLSocket cannot be found by org.apache.httpcomponents.httpclient_4.1.3.v201209201135
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(Unknown Source)

回答by user2997690

I had faced the same problem , The issue with my set up was I was using JDK, after repointing to JRE it is working perfectly now. Proxy Setup- Windows->Preferences->General->Network Connections. Active Provider-Native, Just make sure HTTP - Dynamic should be checked, remaining all should be Unchecked.

我遇到了同样的问题,我的设置问题是我使用的是 JDK,在重新指向 JRE 之后,它现在运行良好。代理设置-Windows->首选项->常规->网络连接。Active Provider-Native,只要确保 HTTP - Dynamic 应该被选中,其余的都应该是 Unchecked。

Note: Above Description Tried and tested with Kepler only.

注意:以上描述仅使用开普勒进行了尝试和测试。

回答by yaakuro

Did you make sure that you selected the Manualmode in the Active Providersection? Go to the Preferences/General/Network Connectionsmenu again and change that if it is not. I think that part is kind a buggy.

您确定Manual在该Active Provider部分中选择了模式吗?转至Preferences/ General/Network Connections再次菜单和变化,如果事实并非如此。我认为那部分有点像马车。

回答by Jobin Mathew

I had this issue, and i changed the proxy settings with password in eclipse. go to windows-> preferences->search for "proxy" open Network connections.

我遇到了这个问题,我在 eclipse 中使用密码更改了代理设置。转到windows-> 首选项->搜索“代理”打开网络连接

Select Active Provider to Manual. Set HTTP and HTTPS proxy, system usernameand password. (it was not working without username and password in my machine)

选择 Active Provider to Manual。设置 HTTP 和 HTTPS 代理、系统用户名密码。(在我的机器中没有用户名和密码就无法工作)

Clear SOCKS proxy if its set.

如果已设置,则清除 SOCKS 代理。

File-> Restart

文件-> 重启