java.lang.RuntimeException : Application "org.eclipse.ui.ide.workbench" could not be found in the registry 错误

标签 java android eclipse eclipse-plugin installation

我正在使用 Eclipse v21.10.1-569685 和 JDK 版本 1.7.0_13-b20 当我在 Eclipse 要求我重新启动软件后下载新更新(帮助-> 安装新软件)时,我遇到了这个错误:

!SESSION 2013-04-10 06:49:45.348 -----------------------------------------------
        eclipse.buildId=v21.1.0-569685
        java.version=1.7.0_13
        java.vendor=Oracle Corporation
        BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
        Framework arguments:  -product com.android.ide.eclipse.adt.package.product
        Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.android.ide.eclipse.adt.package.product

        !ENTRY org.eclipse.osgi 2 0 2013-04-10 06:49:47.671
        !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
        !SUBENTRY 1 org.eclipse.osgi 2 0 2013-04-10 06:49:47.671
        !MESSAGE Bundle reference:file:plugins/org.eclipse.e4.ui.workbench.addons.swt_0.10.1.v20120827-151636.jar was not resolved.
        !SUBENTRY 2 org.eclipse.e4.ui.workbench.addons.swt 2 0 2013-04-10 06:49:47.672
        !MESSAGE Missing required bundle org.eclipse.e4.ui.model.workbench_0.9.1.
        !SUBENTRY 1 org.eclipse.osgi 2 0 2013-04-10 06:49:47.672
        .
        .
        .
        .

        !ENTRY org.eclipse.osgi 4 0 2013-04-10 06:49:47.941
        !MESSAGE Application error
        !STACK 1
        java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. The applications available are: org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.ant.core.antRunner, org.eclipse.cdt.codan.core.application, org.eclipse.cdt.core.GeneratePDOM, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer.
            at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
            at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
            at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
            at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

我应该怎么做才能运行 Eclipse?

最佳答案

好的,谢谢大家,我找到了解决方案,如下所示:

  1. 控制面板 → 查看高级系统设置 → 高级选项卡 → 环境变量
  2. 现在你必须做两件事:

    1. 创建一个新变量(单击“新建”按钮):

      • 变量名:JAVA_HOME
      • 变量值:C:\Program Files\Java\[你的 Java 版本]
    2. 编辑 Path 变量并将其添加到该变量的末尾:

      ;%JAVA_HOME%\bin
      

关于java.lang.RuntimeException : Application "org.eclipse.ui.ide.workbench" could not be found in the registry 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15882062/

相关文章:

java - "Generate entities from table"(MS Access) 在 Eclipse 中通过 UCanAccess

java - PrintWriter 未写入文件。[Java]

android - SwipeRefreshLayout 进度可绘制对象不会完全隐藏在 KitKat 上

java - Clojure 中 -toString 与 .toString 的区别

android - Flurry 分析未报告 Android 上的任何更新

android - ListView 项的 View 在将 View 滚动出屏幕后返回到原始状态

java - 使用 Eclipse 创建 Java 独立程序,32 位与 64 位平台

javascript - 为什么 Eclipse 有时会对 JavaScript 中的数组数组发出警告?

java - BusProvider 未返回@Subscribe

尝试写入 excel 文件时出现 java.lang.NullPointerException :