当我尝试在计算机上安装 Eclipse 时,有人能帮我找出导致此错误的原因吗?以前在同一台计算机上从未出现过此类错误。
[2019-09-22 22:04:41] Executing bootstrap tasks
[2019-09-22 22:04:41] OpenJDK Runtime Environment 11.0.4+11
[2019-09-22 22:04:41] Product org.eclipse.products.epp.package.java.2019-09
[2019-09-22 22:04:41] Bundle org.eclipse.oomph.setup 1.14.0.v20190815-1111, build=4222, branch=df1f9db2f1c3e575486f818cae17bfd35a376162
[2019-09-22 22:04:41] Bundle org.eclipse.oomph.setup.core 1.14.0.v20190705-1542, build=4222, branch=df1f9db2f1c3e575486f818cae17bfd35a376162
[2019-09-22 22:04:41] Bundle org.eclipse.oomph.setup.p2 1.12.0.v20190704-1252, build=4222, branch=df1f9db2f1c3e575486f818cae17bfd35a376162
[2019-09-22 22:04:41] Performing P2 Director (Eclipse IDE for Java Developers (2019-09))
[2019-09-22 22:04:41] Offline = false
[2019-09-22 22:04:41] Mirrors = true
[2019-09-22 22:04:41] Resolving 23 requirements from 3 repositories to D:\Eclipse\Java Developer (SE)\eclipse
[2019-09-22 22:04:41] Requirement epp.package.java [4.13.0,5.0.0)
[2019-09-22 22:04:41] Requirement org.eclipse.platform.feature.group [4.13.0,5.0.0)
[2019-09-22 22:04:41] Requirement org.eclipse.rcp.feature.group [4.13.0,5.0.0)
[2019-09-22 22:04:41] Requirement org.eclipse.buildship.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.eclemma.feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.egit.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.egit.mylyn.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.epp.mpc.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.jdt.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.jgit.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.m2e.feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.m2e.logback.feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.mylyn.bugzilla_feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.mylyn.context_feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.mylyn.git.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.mylyn.hudson.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.mylyn.ide_feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.mylyn.java_feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.mylyn.wikitext_feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.mylyn_feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.tips.feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.wst.xml_ui.feature.feature.group
[2019-09-22 22:04:41] Requirement org.eclipse.oomph.setup.feature.group
[2019-09-22 22:04:41] Repository http://download.eclipse.org/technology/epp/packages/2019-09
[2019-09-22 22:04:41] Repository http://download.eclipse.org/releases/2019-09/201909181001
[2019-09-22 22:04:41] Repository http://download.eclipse.org/oomph/updates/milestone/latest
[2019-09-22 22:04:45] Calculating requirements and dependencies.
[2019-09-22 22:04:46] Computing prerequisite plan
[2019-09-22 22:04:50] Collecting 1 artifacts from http://download.eclipse.org/technology/epp/packages/2019-09
[2019-09-22 22:05:19] Downloading epp.package.java.executable.win32.win32.x86_64
[2019-09-22 22:05:19] Collected 1 artifacts for http://download.eclipse.org/technology/epp/packages/2019-09 in 28.875s
[2019-09-22 22:05:19] Collecting 3 artifacts from http://download.eclipse.org/releases/2019-09/201909181001
[2019-09-22 22:05:51] Downloading org.eclipse.platform_root
[2019-09-22 22:05:51] Downloading org.eclipse.platform.ide.executable.win32.win32.x86_64
[2019-09-22 22:05:51] Downloading org.eclipse.rcp_root
[2019-09-22 22:05:51] Collected 3 artifacts for http://download.eclipse.org/releases/2019-09/201909181001 in 32.413s
[2019-09-22 22:05:52] An error was detected while performing the engine operation and the changes are being rolled back. See the log for details.
[2019-09-22 22:05:52] ERROR: org.eclipse.equinox.p2.engine code=4 An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:548)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:758)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3824)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3752)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3733)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3626)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.installPerform(SimpleVariablePage.java:1305)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.access$32(SimpleVariablePage.java:1167)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage$20.run(SimpleVariablePage.java:1112)
ERROR: org.eclipse.equinox.p2.engine code=0 session context was:(profile=D__Eclipse_Java Developer (SE)_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
ERROR: org.eclipse.equinox.p2.engine code=0 Error reading signed content.
java.io.IOException: Exception in opening zip file: C:\Users\Ankur\.p2\pool\plugins\org.eclipse.ant.ui_3.7.500.v20190518-1030.jar
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:340)
at org.eclipse.osgi.internal.signedcontent.SignedBundleHook.getSignedContent(SignedBundleHook.java:217)
at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.checkCertificates(CertificateChecker.java:77)
at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.start(CertificateChecker.java:58)
at org.eclipse.equinox.internal.p2.engine.phases.CheckTrust.completePhase(CheckTrust.java:55)
at org.eclipse.equinox.internal.p2.engine.Phase.postPerform(Phase.java:255)
at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:105)
at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:50)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:80)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:48)
at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:46)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:544)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:758)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3824)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3752)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3733)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3626)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.installPerform(SimpleVariablePage.java:1305)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.access$32(SimpleVariablePage.java:1167)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage$20.run(SimpleVariablePage.java:1112)
Caused by: java.nio.file.NoSuchFileException: C:\Users\Ankur\.p2\pool\plugins\org.eclipse.ant.ui_3.7.500.v20190518-1030.jar
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:194)
at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1225)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:727)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:191)
at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:322)
at org.eclipse.osgi.internal.signedcontent.SignedBundleHook.getSignedContent(SignedBundleHook.java:217)
at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.checkCertificates(CertificateChecker.java:77)
at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.start(CertificateChecker.java:58)
at org.eclipse.equinox.internal.p2.engine.phases.CheckTrust.completePhase(CheckTrust.java:55)
at org.eclipse.equinox.internal.p2.engine.Phase.postPerform(Phase.java:255)
at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:105)
at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:50)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:80)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:48)
at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:46)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.commit(ProfileTransactionImpl.java:544)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:758)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3824)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3752)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3733)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3626)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.installPerform(SimpleVariablePage.java:1305)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.access$32(SimpleVariablePage.java:1167)
... 1 more
[2019-09-22 22:05:52]
可能有用的信息:
我在默认位置安装了JRE和JDK 1.8,还安装了JDK 1.12。
我的系统上还安装了 IntelliJ IDEA、Sublime Text、VS Code、Visual Studio 等。所有程序都可以编译我的 Java 文件并顺利运行,没有任何问题。
所以我不明白为什么 Eclipse 拒绝安装。(我之前安装过 Eclipse,然后用 IObit Uninstaller 将其删除。)
答案1
主要错误是
Caused by: java.nio.file.NoSuchFileException: C:\Users\Ankur\.p2\pool\plugins\org.eclipse.ant.ui_3.7.500.v20190518-1030.jar
,但我无法告诉你为什么这个 jar 不见了。它可能是上次安装时留下的损坏的 jar。
下载org.eclipse.ant.ui_3.7.500.v20190518-1030.jar并将其放入C:\Users\Ankur\.p2\pool\plugins
目录中并重新启动 Eclipse。幸运的是,这是唯一损坏的部分。
如果仍然不起作用,您可以删除或重命名.p2
共享捆绑池目录并尝试全新安装。