安装eclipse neon时出现内部错误

时间:2016-12-15 12:38:38

标签: java eclipse

当我为64位Linux启动Eclipse Neon的64位设置时,我收到以下错误:

java.lang.IllegalArgumentException: Host name may not be blank
    at org.apache.http.util.Args.notBlank(Args.java:68)
    at org.apache.http.HttpHost.<init>(HttpHost.java:81)
    at org.apache.http.HttpHost.<init>(HttpHost.java:100)
    at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.setupProxy(HttpClientRetrieveFileTransfer.java:950)
    at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.setupProxies(HttpClientRetrieveFileTransfer.java:327)
    at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:884)
    at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:576)
    at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
    at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:664)
    at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
    at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.handleArchiveRedirection(SetupCoreUtil.java:394)
    at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:375)
    at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.createResourceSet(SetupCoreUtil.java:150)
    at org.eclipse.oomph.setup.ui.wizards.SetupWizard.<init>(SetupWizard.java:148)
    at org.eclipse.oomph.setup.ui.wizards.SetupWizard.<init>(SetupWizard.java:140)
    at org.eclipse.oomph.setup.internal.installer.Installer.<init>(Installer.java:33)
    at org.eclipse.oomph.setup.internal.installer.InstallerApplication.run(InstallerApplication.java:184)
    at org.eclipse.oomph.setup.internal.installer.InstallerApplication.start(InstallerApplication.java:310)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

经过大量搜索,我无法找到解决此问题的方法。

这是我的java -version

的输出
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-2-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

请帮忙!

1 个答案:

答案 0 :(得分:1)

我有类似的情况,并通过创建一个名为http_proxy的环境变量并将其设置为有意义的值来修复它。

新环境,但失败了:

$ ~/Downloads/eclipse-installer/eclipse-inst

新环境,但工作(我把Fiddler作为代理人开火):

$ export http_proxy=127.0.0.1:8888
$ ~/Downloads/eclipse-installer/eclipse-inst

我注意到代理从未使用过,只是检查是否存在。