2017-01-16 312 views
3

我正在嘗試安裝eclipse IDE(面向開發人員的Java),但在安裝過程中遇到以下錯誤。安裝Eclipse IDE時出錯

我在系統驅動器中有足夠的空間。

在過去,我已經安裝並卸載了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]

+0

您使用的是在線安裝程序嗎?嘗試下載整個eclipse並像那樣安裝。 – AR1

+0

我正試圖從官方網站下載Eclipse Neon。希望它是我應該下載的那個。我不想單獨下載擴展。還有其他建議嗎? – Priya

回答

4

我可以解決這個問題。

  1. 刪除用戶文件夾中與eclipse相關的系統中已存在的所有文件。

  2. 刪除工作區,如果有的話。 (另存項目)

  3. 嘗試從官方網站安裝eclipse。儘量不要去在線安裝。安裝完整的軟件

軟件的安裝將是成功的

+0

只需將zip文件解壓縮到您選擇的位置,並將包含的「eclipse.exe」固定到開始菜單 – datafiddler

2

我碰到一個錯誤代碼1002來的太爲好。該問題似乎是由其嘗試聯繫的在線資源引起的。解決方案在等待幾個小時後解決。我張貼這篇文章是因爲我在其他地方看到類似的投訴,並希望傳播此解決方案的知識。