简体   繁体   English

安装Eclipse Neon时发生内部错误

[英]Internal error while installing eclipse neon

When I launch 64 bit setup of Eclipse Neon for my 64 bit linux I get the following error: 当我为我的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)

I couldn't find any solution for this problem after searching a lot. 经过大量搜索后,我找不到此问题的任何解决方案。

This is the output of my java -version : 这是我的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)

Please help! 请帮忙!

I had a similar situation, and fixed it by creating an environment variable called http_proxy and setting it to a meaningful value. 我也遇到类似的情况,并通过创建一个名为http_proxy的环境变量并将其设置为有意义的值来解决该问题。

Fresh environment, but failed: 新鲜的环境,但是失败了:

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

Fresh environment, but worked (I fired up Fiddler as a proxy): 新鲜的环境,但是可以工作(我解雇了Fiddler作为代理):

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

I noticed that the proxy was never used, but simply checked for existence. 我注意到从未使用过代理,而只是检查了代理是否存在。

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

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