简体   繁体   English

在 Windows 上安装 Eclipse IDE 时出错

[英]Error installing Eclipse IDE on windows

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.我需要为我的计算机科学课程安装用于 Java 编程的Eclipse IDE,我已经尝试了两天,但没有成功。 I tried both the 64 and 32 bit installations and I get the exact same error.我尝试了 64 位和 32 位安装,但得到完全相同的错误。 It's very frustrating because whenever I search all people talk about are "plug-ins".这很令人沮丧,因为每当我搜索时,所有人都在谈论“插件”。

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$3.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$27(SimpleVariablePage.java:1030)
  at org.eclipse.oomph.setup.internal.installer.SimpleVariablePage$18.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$3.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.我尝试重新安装JDK 、重新启动、重新下载Eclipse 、安装 32 位版本的Eclipse和 JDK 以及 64 位版本。 I also system restored to before I started any of it and tried again on a clean boot and got the same error.在我开始任何系统之前,我也将系统恢复到并再次尝试干净启动并得到相同的错误。

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.因此,右键单击安装程序文件(eclipse-inst-win64.exe),然后单击以管理员身份运行。 Now just follow the prompts and you should be fine.现在只需按照提示进行操作,您应该没问题。

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:也看看这两个线程:

Sometimes even installing with Administrator Privileges in C:/Program Files/ might cause errors like timeouts.有时甚至在 C:/Program Files/ 中使用管理员权限安装也可能导致超时等错误。 It's always better to install in a partition other than the C Drive (Non Operating System Drive).最好安装在 C 盘(非操作系统盘)以外的分区中。

In my case, I had tow version of eclipse in my PC.就我而言,我的 PC 中有两个版本的 eclipse。 To fix this issue, I changed the bundle repository during the installation phase.为了解决这个问题,我在安装阶段更改了包存储库。

Normaly you can find the bundle at the following path: C:\\Users\\<name>\\.p2通常,您可以在以下路径找到该包: C:\\Users\\<name>\\.p2

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 似乎让我失望了。

I faced a similar problem.我遇到了类似的问题。 I had a different version installed in my system.我的系统中安装了不同的版本。 So we need to delete that .p2 folder first and then install it.所以我们需要先删除那个.p2文件夹,然后再安装它。

Go to C:\\Users\\<your name>\\.p2转到C:\\Users\\<your name>\\.p2

and delete .p2 folder and again try to install it.并删除.p2文件夹,然后再次尝试安装它。 This worked for me.这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM