在 Windows 上安装 Eclipse IDE 时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32637399/
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
Error installing Eclipse IDE on windows
提问by Techies
Hello everyone this is my first question here so I apologize for any missed expectations.
大家好,这是我在这里的第一个问题,因此对于任何错过的期望,我深表歉意。
EDIT 1:
编辑 1:
Downloaded Eclipse from : https://eclipse.org/downloads/download.php?file=/oomph/products/eclipse-inst-win64.exe
从以下位置下载 Eclipse:https: //eclipse.org/downloads/download.php?file=/oomph/ products/eclipse- inst-win64.exe
64-bit Windows 8
64 位 Windows 8
JDK Dir: C:\Program Files\Java
JDK 目录:C:\Program Files\Java
/Edit 1
/编辑 1
I need to install the Eclipse
IDE for Java programming for my Computer Science class and I have been trying for two days now with no success. I tried both the 64 and 32 bit installations and I get the exact same error. It's very frustrating because whenever I search all people talk about are "plug-ins".
我需要Eclipse
为我的计算机科学课程安装用于 Java 编程的IDE,我已经尝试了两天,但没有成功。我尝试了 64 位和 32 位安装,但得到完全相同的错误。这很令人沮丧,因为每当我搜索时,所有人都在谈论“插件”。
Here is the error I get when installing:
这是我安装时遇到的错误:
[2015-09-17 13:30:06] Downloading org.eclipse.rcp_root
[2015-09-17 13:30:34] An error was detected while performing the engine operation and the changes are being rolled back. See the log for details.
[2015-09-17 13:30:34] 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:282)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:523)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:328)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:709)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:2971)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2900)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2881)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2775)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.installPerform(SimpleVariablePage.java:1151)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.access(SimpleVariablePage.java:1030)
at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.run(SimpleVariablePage.java:976)
ERROR: org.eclipse.equinox.p2.engine code=0 session context was:(profile=C__Users_Techies_eclipse_java-latest-released2_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
ERROR: org.eclipse.equinox.p2.engine code=0 Error with signed content.
java.security.SignatureException: An error occurred while processing the signatures for the file: C:\Users\Techies\.p2\pool\features\org.eclipse.wst.xml_core.feature_3.7.0.v201502261749
at org.eclipse.osgi.internal.signedcontent.SignedBundleHook.getSignedContent(SignedBundleHook.java:219)
at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.checkCertificates(CertificateChecker.java:73)
at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.start(CertificateChecker.java:54)
at org.eclipse.equinox.internal.p2.engine.phases.CheckTrust.completePhase(CheckTrust.java:50)
at org.eclipse.equinox.internal.p2.engine.Phase.postPerform(Phase.java:251)
at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:101)
at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:42)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:519)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:328)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:709)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:2971)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2900)
This goes on even more will post the entire thing if needed but hoping there is something obvious I am missing. I have tried re-installing JDK
, rebooting, re-downloading Eclipse
, installing 32-bit versions of Eclipse
and JDK and 64-bit for both. I also system restored to before I started any of it and tried again on a clean boot and got the same error.
如果需要,这会继续发布整个内容,但希望有一些明显的我遗漏的东西。我已经尝试重新安装JDK
、重新启动、重新下载Eclipse
、安装 32 位版本的Eclipse
JDK 和 64位版本。在我启动任何系统之前,我也将系统恢复到并再次尝试干净启动并得到相同的错误。
回答by Kilian
I just experienced a similar problem. Running the installer as administrator solved the problem for me.
我刚刚遇到了类似的问题。以管理员身份运行安装程序为我解决了这个问题。
So right click on the installer file (eclipse-inst-win64.exe) and then click on Run as administrator. Now just follow the prompts and you should be fine.
因此,右键单击安装程序文件(eclipse-inst-win64.exe),然后单击以管理员身份运行。现在只需按照提示进行操作,您应该没问题。
In case it matters, I did not update the installer, because it restarts and probably (i'm not sure) it won't restart in administrator mode.
以防万一,我没有更新安装程序,因为它会重新启动并且可能(我不确定)它不会在管理员模式下重新启动。
Btw this was on a 64bit Windows 8.1 machine.
顺便说一句,这是在 64 位 Windows 8.1 机器上。
Also have a look at these two threads:
也看看这两个线程:
回答by Vijay
Sometimes even installing with Administrator Privileges in C:/Program Files/ might cause errors like timeouts. It's always better to install in a partition other than the C Drive (Non Operating System Drive).
有时甚至在 C:/Program Files/ 中使用管理员权限安装也可能导致超时等错误。最好安装在 C 盘(非操作系统盘)以外的分区中。
回答by Nivek
In my case, I had tow version of eclipse in my PC. To fix this issue, I changed the bundle repository during the installation phase.
就我而言,我的 PC 中有两个版本的 eclipse。为了解决这个问题,我在安装阶段更改了包存储库。
Normaly you can find the bundle at the following path: C:\Users\<name>\.p2
通常,您可以在以下路径中找到该包: C:\Users\<name>\.p2
回答by World's Funkiest Man
A workmate overheard me cursing about a very similar issue.
一位同事无意中听到我诅咒一个非常相似的问题。
He had me uninstall NetBeans (installed on all the machines here).
他让我卸载 NetBeans(安装在所有机器上)。
The previous suggestions seemed to get me closer, but ditching NetBeans appears to have put me over.
之前的建议似乎让我更接近,但放弃 NetBeans 似乎让我失望了。