2016-12-15 78 views
0

當我啓動Eclipse霓虹燈的64位設置爲我的64位Linux,我得到以下錯誤:內部錯誤而安裝Eclipse霓虹燈

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

您是否編輯過eclipse文件夾中的任何配置文件?如果是,它們是什麼? –

+0

@SanjitKumarMishra不,我沒有編輯任何文件。我所做的只是下載[這個文件](https://www.eclipse.org/downloads/download.php?file=/oomph/epp/neon/R1/eclipse-inst-linux64.tar.gz),解壓縮它使用'tar xvf ...',然後運行'eclipse-inst'。 – Lokesh

+0

看到這個鏈接https://issues.apache.org/jira/browse/HTTPCLIENT-1498。它可能會幫助你 – Bikku

回答

1

我有類似的情況,並通過創建一個名爲http_proxy的環境變量並將其設置爲有意義的值來修復它。

清新的環境,但沒有成功

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

清新的環境,但工作(我解僱了菲德勒作爲代理):

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

我注意到這是從來沒有使用的代理,而是簡單地檢查是否存在。