无法安装Eclipse。日志如下

时间:2017-12-21 15:49:28

标签: eclipse installation ide

无法安装eclipse。记录在下面。

我已经尝试过:重新启动,安装JRE8,重新下载安装程序,fluching缓存(Eclipse缓存,AppData),禁用防病毒和防火墙。

[2017-12-21 15:41:43] Executing bootstrap tasks
[2017-12-21 15:41:43] Java(TM) SE Runtime Environment 1.8.0_151-b12
[2017-12-21 15:41:43] Product org.eclipse.products.epp.package.java.oxygen
[2017-12-21 15:41:43] Bundle org.eclipse.oomph.setup 1.8.0.v20170408-0745, build=3059, branch=2161405b80cf99ed791602ba56cdf44084f5ca43
[2017-12-21 15:41:43] Bundle org.eclipse.oomph.setup.core 1.8.0.v20170531-0903, build=3059, branch=2161405b80cf99ed791602ba56cdf44084f5ca43
[2017-12-21 15:41:43] Bundle org.eclipse.oomph.setup.p2 1.8.0.v20170318-0419, build=3059, branch=2161405b80cf99ed791602ba56cdf44084f5ca43
[2017-12-21 15:41:43] Performing P2 Director (Eclipse IDE for Java Developers (Oxygen))
[2017-12-21 15:41:43] Offline = false
[2017-12-21 15:41:43] Mirrors = true
[2017-12-21 15:41:43] Resolving 25 requirements from 3 repositories to C:\Users\JamesFrench\eclipse\java-oxygen\eclipse
[2017-12-21 15:41:43] Requirement epp.package.java [4.7.0,4.8.0)
[2017-12-21 15:41:43] Requirement org.eclipse.platform.feature.group [4.7.0,4.8.0)
[2017-12-21 15:41:43] Requirement org.eclipse.rcp.feature.group [4.7.0,4.8.0)
[2017-12-21 15:41:43] Requirement org.eclipse.buildship.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.eclemma.feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.egit.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.egit.mylyn.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.jdt.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.jgit.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.m2e.feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.m2e.logback.feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.mylyn.bugzilla_feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.mylyn.context_feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.mylyn.git.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.mylyn.hudson.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.mylyn.ide_feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.mylyn.java_feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.mylyn.wikitext_feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.mylyn_feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.recommenders.mylyn.rcp.feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.recommenders.news.rcp.feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.recommenders.rcp.feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.recommenders.snipmatch.rcp.feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.wst.xml_ui.feature.feature.group
[2017-12-21 15:41:43] Requirement org.eclipse.oomph.setup.feature.group
[2017-12-21 15:41:43] Repository http://download.eclipse.org/technology/epp/packages/oxygen
[2017-12-21 15:41:43] Repository http://download.eclipse.org/releases/oxygen
[2017-12-21 15:41:43] Repository http://download.eclipse.org/oomph/updates/milestone/latest
[2017-12-21 15:41:46] ERROR: org.eclipse.equinox.p2.metadata.repository code=1002 Unable to read repository at http://download.eclipse.org/releases/oxygen.
ERROR: org.eclipse.equinox.p2.metadata.repository code=1002 Unable to read repository at http://download.eclipse.org/releases/oxygen/201712201001.
org.tukaani.xz.XZFormatException: Input is not in the XZ format
  at org.tukaani.xz.common.DecoderUtil.decodeStreamHeader(Unknown Source)
  at org.tukaani.xz.SingleXZInputStream.initialize(Unknown Source)
  at org.tukaani.xz.SingleXZInputStream.initialize(Unknown Source)
  at org.tukaani.xz.SingleXZInputStream.<init>(Unknown Source)
  at org.tukaani.xz.XZInputStream.<init>(Unknown Source)
  at org.tukaani.xz.XZInputStream.<init>(Unknown Source)
  at org.eclipse.equinox.internal.p2.metadata.repository.XZedSimpleMetadataRepositoryFactory.load(XZedSimpleMetadataRepositoryFactory.java:80)
  at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
  at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:768)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.eclipse.oomph.util.ReflectUtil.invokeMethod(ReflectUtil.java:117)
  at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.loadRepository(CachingRepositoryManager.java:409)
  at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.loadRepository(CachingRepositoryManager.java:201)
  at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager$Metadata.loadRepository(CachingRepositoryManager.java:476)
  at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
  at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
  at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository.addChild(CompositeMetadataRepository.java:166)
  at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository.<init>(CompositeMetadataRepository.java:106)
  at org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepositoryFactory.load(CompositeMetadataRepositoryFactory.java:122)
  at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
  at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:768)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.eclipse.oomph.util.ReflectUtil.invokeMethod(ReflectUtil.java:117)
  at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.loadRepository(CachingRepositoryManager.java:409)
  at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.loadRepository(CachingRepositoryManager.java:201)
  at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager$Metadata.loadRepository(CachingRepositoryManager.java:476)
  at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
  at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$RepositoryLoader$Worker.perform(ProfileTransactionImpl.java:1613)
  at org.eclipse.oomph.util.WorkerPool$Worker.run(WorkerPool.java:428)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

[2017-12-21 15:41:46] 

日志已全部包含在内。

2 个答案:

答案 0 :(得分:0)

试试这个:

删除与eclipse相关的用户文件夹中系统中已有的所有文件。

删除工作区(如果有)。 (单独保存项目)

尝试从官方网站安装eclipse。尽量不要去在线安装程序。安装完整软件

软件安装将成功

答案 1 :(得分:0)

也许您应该尝试使用eclipse支持论坛。看起来这可能与防火墙/代理问题

有关

您是否从此处下载了安装程序? http://download.eclipse.org/

更新:我自己刚刚进行了测试安装,但是它失败并显示了与您不同的错误消息。我刚刚更改了安装路径后安装工作(我在现有路径的末尾添加了&#34; 2&#34;)。