gpt4 book ai didi

java - 安装 eclipse neon 时出现内部错误

转载 作者:行者123 更新时间:2023-12-01 09:07:15 25 4
gpt4 key购买 nike

当我为 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)

请帮忙!

最佳答案

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

新环境,但失败:

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

新环境,但有效(我启动了 Fiddler 作为代理):

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

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

关于java - 安装 eclipse neon 时出现内部错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41164387/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com