安装失败并出现错误 (Eclipse)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43192058/
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
Installation Failed With An Error (Eclipse)
提问by Marouane Chahidi
When I try to install the installation finish with an error : installation failed with an error - show log , and this happening even if I run it as admin I'm using Windows 7 Professional 64bits , when I click on show log this is what I see :
当我尝试安装安装完成时出现错误:安装失败并出现错误 - 显示日志,即使我以管理员身份运行它也会发生这种情况我使用的是 Windows 7 Professional 64bits,当我点击显示日志时,这就是我看 :
[2017-04-03 20:33:34] Executing bootstrap tasks
[2017-04-03 20:33:34] Java(TM) SE Runtime Environment 1.8.0_121-b13
[2017-04-03 20:33:34] Product org.eclipse.products.epp.package.java.neon
[2017-04-03 20:33:34] Bundle org.eclipse.oomph.setup 1.6.0.v20161125-0947, build=2790, branch=33010448bcf5775ec23e485876cbb07a0340b9b5
[2017-04-03 20:33:34] Bundle org.eclipse.oomph.setup.core 1.6.0.v20161128-0928, build=2790, branch=33010448bcf5775ec23e485876cbb07a0340b9b5
[2017-04-03 20:33:34] Bundle org.eclipse.oomph.setup.p2 1.6.0.v20161019-0656, build=2790, branch=33010448bcf5775ec23e485876cbb07a0340b9b5
[2017-04-03 20:33:34] Performing P2 Director (Eclipse IDE for Java Developers (Neon))
[2017-04-03 20:33:34] Offline = false
[2017-04-03 20:33:34] Mirrors = true
[2017-04-03 20:33:34] Resolving 23 requirements from 3 repositories to D:\Nouveau dossier (2)\eclipse
[2017-04-03 20:33:34] Requirement epp.package.java [4.6.0,4.7.0)
[2017-04-03 20:33:34] Requirement org.eclipse.platform.feature.group [4.6.0,4.7.0)
[2017-04-03 20:33:34] Requirement org.eclipse.rcp.feature.group [4.6.0,4.7.0)
[2017-04-03 20:33:34] Requirement org.eclipse.buildship.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.egit.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.egit.mylyn.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.jdt.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.jgit.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.m2e.feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.m2e.logback.feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.mylyn.bugzilla_feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.mylyn.context_feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.mylyn.git.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.mylyn.hudson.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.mylyn.ide_feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.mylyn.java_feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.mylyn.wikitext_feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.mylyn_feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.recommenders.mylyn.rcp.feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.recommenders.rcp.feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.recommenders.snipmatch.rcp.feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.wst.xml_ui.feature.feature.group
[2017-04-03 20:33:34] Requirement org.eclipse.oomph.setup.feature.group
[2017-04-03 20:33:34] Repository http://download.eclipse.org/technology/epp/packages/neon
[2017-04-03 20:33:34] Repository http://download.eclipse.org/releases/neon/201703231000
[2017-04-03 20:33:34] Repository http://download.eclipse.org/oomph/updates/milestone/latest
[2017-04-03 20:33:37] Calculating requirements and dependencies.
[2017-04-03 20:33:37] Computing prerequisite plan
[2017-04-03 20:33:41] Collecting 1 artifacts from http://download.eclipse.org/technology/epp/packages/neon
[2017-04-03 20:33:42] Downloading epp.package.java.executable.win32.win32.x86_64
[2017-04-03 20:33:42] Collected 1 artifacts for http://download.eclipse.org/technology/epp/packages/neon in 0.669s
[2017-04-03 20:33:42] Collecting 3 artifacts from http://download.eclipse.org/releases/neon/201703231000
[2017-04-03 20:33:46] Downloading org.eclipse.platform_root
[2017-04-03 20:33:46] Downloading org.eclipse.rcp_root
[2017-04-03 20:33:46] Downloading org.eclipse.platform.ide.executable.win32.win32.x86_64
[2017-04-03 20:33:46] Collected 3 artifacts for http://download.eclipse.org/releases/neon/201703231000 in 3.681s
[2017-04-03 20:33:46] An error was detected while performing the engine operation and the changes are being rolled back. See the log for details.
[2017-04-03 20:33:46] 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.commit(ProfileTransactionImpl.java:547)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:340)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:729)
I can't write the all code but it's something like that if you could help me please
我不能写所有的代码,但如果你能帮助我,那就是类似的东西
采纳答案by TinkerTenorSoftwareGuy
Make sure your JDK is also 64-bit, and make sure the version of Eclipse you have downloaded is 64-bit. If everything is not aligned (system, JDK, IDE) as 64-bit you will get all kinds of strange errors and your IDE will not start.
确保您的 JDK 也是 64 位,并确保您下载的 Eclipse 版本是 64 位。如果一切都没有对齐(系统、JDK、IDE)为 64 位,您将收到各种奇怪的错误并且您的 IDE 将无法启动。
UPDATE:
更新:
The issue occurs when you are installing a plug-in.
Please see this post:
安装插件时会出现此问题。
请看这个帖子:
Or, if you don't want to do through all that, I suggest downloading a bare-bones version of Eclipse (no PD2 plugins built-in, just generic) and using the Marketplace to grab the extra plug-ins you want manually.
或者,如果您不想完成所有这些,我建议您下载 Eclipse 的基本版本(没有内置 PD2 插件,只是通用的)并使用 Marketplace 手动获取您想要的额外插件。
回答by user6284379
if the problem is still not resolved even after ensuring you have the right JDK installed for your machine, try using the advanced modelocated under the overflow menu on the right-hand side of the eclipse installation window. This installation mode worker for me and several of my friends. You can also follow the video here
如果在确保为机器安装了正确的 JDK 后问题仍未解决,请尝试使用位于 eclipse 安装窗口右侧溢出菜单下的高级模式。这个安装模式工人适合我和我的几个朋友。您也可以在这里观看视频