安装 Eclipse IDE 时出错

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41674861/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 23:21:40  来源:igfitidea点击:

Error while installing Eclipse IDE

eclipseinstallation

提问by A user

I am trying to install eclipse IDE (Java for developers) , but facing the below error during the installation.

我正在尝试安装 eclipse IDE (Java for developer),但在安装过程中遇到以下错误。

I have enough space in the system drive.

我在系统驱动器中有足够的空间。

In past i have installed and uninstalled the eclipse IDE. So is this giving me any problem to re-install?

过去我安装和卸载了 Eclipse IDE。那么这是否给我重新安装带来了任何问题?

10:50:59] ERROR: org.eclipse.equinox.p2.transport.ecf code=1002 Unable to read repository at http://download.eclipse.org/releases/neon/201612211000/content.xml.xz. org.apache.http.TruncatedChunkException: Truncated chunk ( expected size: 8096; actual size: 7189) at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:183) at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:74) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) at java.io.FilterInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:178) at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:74) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

[2017-01-16 10:50:59] [2017-01-16 10:51:04] Executing bootstrap tasks [2017-01-16 10:51:04] Java(TM) SE Runtime Environment 1.8.0_111-b14 [2017-01-16 10:51:04] Product org.eclipse.products.epp.package.java.neon [2017-01-16 10:51:04] Bundle org.eclipse.oomph.setup 1.6.0.v20161125-0947, build=2790, branch=33010448bcf5775ec23e485876cbb07a0340b9b5 [2017-01-16 10:51:04] Bundle org.eclipse.oomph.setup.core 1.6.0.v20161128-0928, build=2790, branch=33010448bcf5775ec23e485876cbb07a0340b9b5 [2017-01-16 10:51:04] Bundle org.eclipse.oomph.setup.p2 1.6.0.v20161019-0656, build=2790, branch=33010448bcf5775ec23e485876cbb07a0340b9b5 [2017-01-16 10:51:04] Performing P2 Director (Eclipse IDE for Java Developers (Neon)) [2017-01-16 10:51:04] Offline = false [2017-01-16 10:51:04] Mirrors = true [2017-01-16 10:51:04] Resolving 23 requirements from 3 repositories to C:\personaldev\eclipse [2017-01-16 10:51:04] Requirement epp.package.java [4.6.0,4.7.0) [2017-01-16 10:51:04] Requirement org.eclipse.platform.feature.group [4.6.0,4.7.0) [2017-01-16 10:51:04] Requirement org.eclipse.rcp.feature.group [4.6.0,4.7.0) [2017-01-16 10:51:04] Requirement org.eclipse.buildship.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.egit.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.egit.mylyn.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.jdt.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.jgit.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.m2e.feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.m2e.logback.feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.mylyn.bugzilla_feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.mylyn.context_feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.mylyn.git.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.mylyn.hudson.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.mylyn.ide_feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.mylyn.java_feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.mylyn.wikitext_feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.mylyn_feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.recommenders.mylyn.rcp.feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.recommenders.rcp.feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.recommenders.snipmatch.rcp.feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.wst.xml_ui.feature.feature.group [2017-01-16 10:51:04] Requirement org.eclipse.oomph.setup.feature.group [2017-01-16 10:51:04] Repository http://download.eclipse.org/technology/epp/packages/neon[2017-01-16 10:51:04] Repository http://download.eclipse.org/releases/neon/201612211000[2017-01-16 10:51:04] Repository http://download.eclipse.org/oomph/updates/milestone/latest[2017-01-16 10:54:14] ERROR: org.eclipse.equinox.p2.transport.ecf code=1002 Unable to read repository at http://download.eclipse.org/releases/neon/201612211000/content.xml.xz. java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84) at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:206) at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:174) at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream.java:74) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) at java.io.FilterInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:178) at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:74) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

[2017-01-16 10:54:14]

10:50:59]错误:org.eclipse.equinox.p2.transport.ecf 代码=1002 无法在http://download.eclipse.org/releases/neon/201612211000/content.xml.xz读取存储库 . org.apache.http.TruncatedChunkException:在 org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:183) 在 java.util.zip.InflaterInputStream 的截断块(预期大小:8096;实际大小:7189) .fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at org.apache.http.client.entity.LazyDecompressingInputStream.read(LazyDecompressingInputStream) .java:74) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137) at java.io.FilterInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org .eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:178) 在 org.eclipse.ecf.filetransfer。

[2017-01-16 10:50:59] [2017-01-16 10:51:04] 执行引导任务 [2017-01-16 10:51:04] Java(TM) SE Runtime Environment 1.8.0_111- b14 [2017-01-16 10:51:04] 产品 org.eclipse.products.epp.package.java.neon [2017-01-16 10:51:04] 捆绑 org.eclipse.oomph.setup 1.6.0 .v20161125-0947,构建= 2790,分支= 33010448bcf5775ec23e485876cbb07a0340b9b5 [2017年1月16日10时51分04秒]捆绑org.eclipse.oomph.setup.core 1.6.0.v20161128-0928,构建= 2790,分支= 33010448bcf5775ec23e485876cbb07a0340b9b5 [ 2017-01-16 10:51:04] 捆绑 org.eclipse.oomph.setup.p2 1.6.0.v20161019-0656,构建 = 2790,分支 = 33010448bcf5775ec23e485876cbb02010700] P24051070703:P Director (Eclipse IDE for Java Developers (Neon)) [2017-01-16 10:51:04] Offline = false [2017-01-16 10:51:04] Mirrors = true [2017-01-16 10:51] :04] 将 3 个存储库中的 23 个需求解析到 C:\personaldev\eclipse [2017-01-16 10:51:04] Requirement epp.package.java [4.6.0,4.7.0) [2017-01-16 10: 51:04] 要求 org.eclipse.platform.feature.group [4.6.0,4.7.0) [2017-01-16 10:51:04] 要求 org.eclipse.rcp.feature.group [4.6.0, 4.7.0) [2017-01-16 10:51:04] 要求 org.eclipse.buildship.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.egit.feature.group [2017] -01-16 10:51:04] 需求 org.eclipse.egit.mylyn.feature.group [2017-01-16 10:51:04] 需求 org.eclipse.jdt.feature.group [2017-01-16 10:51:04] 需求 org.eclipse.jgit.feature.group [2017-01-16 10:51:04] 需求 org.eclipse.m2e.feature.feature.group [2017-01-16 10:51: 04] 需求 org.eclipse.m2e.logback.feature.feature.group [2017-01-16 10:51:04] 需求 org.eclipse.mylyn.bugzilla_feature.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.mylyn.context_feature.feature.group [2017-01-16 10:51:04] 要求 org.eclipse。 mylyn.git.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.mylyn.hudson.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.mylyn。 ide_feature.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.mylyn.java_feature.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.mylyn.wikitext_feature。 feature.group [2017-01-16 10:51:04] 要求 org.eclipse.mylyn_feature.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.recommenders.mylyn.rcp.feature。 feature.group [2017-01-16 10:51:04] 要求 org.eclipse.recommenders.rcp.feature.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.recommenders.snipmatch。rcp.feature.feature.group [2017-01-16 10:51:04] 要求 org.eclipse.wst.xml_ui.feature.feature.group [2017-01-16 10:51:04] 要求 org.eclipse。 omph.setup.feature.group [2017-01-16 10:51:04] 存储库 http://download.eclipse.org/technology/epp/packages/neon[2017-01-16 10:51:04] 存储库 http://download.eclipse.org/releases/neon/201612211000[2017-01- 16 10:51:04] 存储库 http://download.eclipse.org/oomph/updates/milestone/latest[2017-01-16 10:54:14] 错误:org.eclipse.equinox.p2.transport.ecf代码=1002 无法在http://download.eclipse.org/releases/neon/201612211000/content.xml.xz读取存储库 . java.net.SocketTimeoutException:在 java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.net 中读取超时。 SocketInputStream.read(Unknown Source) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84) at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:206) 在 org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:174) 在 java.util.zip.InflaterInputStream。在 org.apache 上的 java.util.zip.GZIPInputStream.read(Unknown Source) 上的 java.util.zip.InflaterInputStream.read(Unknown Source) 上填充(Unknown Source)。

[2017-01-16 10:54:14]

采纳答案by A user

I could resolve the issue.

我可以解决这个问题。

  1. Delete all the files which are already on the system in users folder related to eclipse.

  2. Delete workspace if any. (Save projects seperately)

  3. Try installing the eclipse from the official site. Try not to go for the online installers. Install full software

  1. 删除系统上与eclipse相关的users文件夹中的所有文件。

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

  3. 尝试从官方站点安装 eclipse。尽量不要使用在线安装程序。安装完整软件

The Software installation will be succesful

软件安装将成功

回答by user8567639

I came across an error code 1002 too as well. The problem appears to be caused by the online resource it is trying to contact. The solution resolved itself after waiting a couple hours. I post this because I was seeing similar complaints elsewhere and wanted to spread knowledge of this solution.

我也遇到了错误代码 1002。该问题似乎是由它尝试联系的在线资源引起的。等待几个小时后,该解决方案自行解决。我发布此信息是因为我在其他地方看到了类似的投诉,并希望传播有关此解决方案的知识。

回答by Rayhunter

I will share my experience with this problem.

我将分享我对这个问题的经验。

  1. Started getting Error 1002

  2. Downloaded and installed the latest JDK SE version.

  3. Stopped getting Error 1002, but started getting Error 4

  4. Downloaded and installed the latest JRE version.

  5. Did not help, kept getting Error 4

  6. Stopped the installer, deleted all the folders created by it in the pertinent folder (in my case it was C:\Users\Me)

  7. Did not help again.

  8. Took a nap (approx. 15-20 minutes)

  9. Repeated 6.(deleting all which the installer created)

  10. Tried to install it again and it worked(although it was constantly warning me about the slowness of the installation process and the slow progress of the artifacts' download)

  1. 开始出现错误 1002

  2. 下载并安装了最新的 JDK SE 版本。

  3. 停止收到错误 1002,但开始收到错误 4

  4. 下载并安装了最新的 JRE 版本。

  5. 没有帮助,不断收到错误 4

  6. 停止安装程序,删除它在相关文件夹中创建的所有文件夹(在我的情况下是C:\Users\Me

  7. 又没救了。

  8. 小睡一会儿(约 15-20 分钟)

  9. 重复6.(删除安装程序创建的所有内容)

  10. 尝试再次安装它并且它起作用了(尽管它不断警告我安装过程的缓慢和工件下载的缓慢进度)

Bottom line:I guess it is a matter of time. You'll need to wait and, in the meantime, you can update your JDK and JRE.

底线:我想这是一个时间问题。您需要等待,同时,您可以更新 JDK 和 JRE。