简体   繁体   English

java.lang.RuntimeException:在注册表中找不到应用程序“org.eclipse.ui.ide.workbench”

[英]java.lang.RuntimeException: Application “org.eclipse.ui.ide.workbench” could not be found in the registry

i am using Eclipse v21.10.1-569685 and JDK version 1.7.0_13-b20 When i downloaded new updates (Help-> Install New Software) after that Eclipse asked me to restart the software, but i faced with this error: 我正在使用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)

What should i do to run the Eclipse? 我该怎么做才能运行Eclipse?

OK thanks everyone I found the solution, which was the following: 好的,谢谢大家,我找到了解决方案,其中包括:

  1. Control Panel → View advanced system settings → Advanced tab → Environment Variables 控制面板→查看高级系统设置→高级选项卡→环境变量
  2. Now you have to do 2 things: 现在你必须做两件事:

    1. Create a new variable (click the New button): 创建一个新变量(单击“新建”按钮):

      • Variable name: JAVA_HOME 变量名称: JAVA_HOME
      • Variable value: C:\\Program Files\\Java\\[your Java Version] 变量值: C:\\Program Files\\Java\\[your Java Version]
    2. Edit the Path variable and add this to the end of that: 编辑Path变量并将其添加到结尾:

       ;%JAVA_HOME%\\bin 

DELETE (or just move to a temporary folder) your $home/.eclipse folder (ie, the config folder). 删除(或只是移动到临时文件夹)$ home / .eclipse文件夹(即config文件夹)。

It worked for me. 它对我有用。

The "org.eclipse.ui.ide.workbench" application is included in the org.eclipse.platform plugin. “org.eclipse.ui.ide.workbench”应用程序包含在org.eclipse.platform插件中。 This plugin isn't include in your instance because some reason. 由于某些原因,此插件未包含在您的实例中。 Maybe, installing ADT invalid it. 也许,安装ADT使它无效。 Try to restore old configuration (Help>About>Installation details>Installation History) and reinstall ADT again. 尝试恢复旧配置(“帮助”>“关于”>“安装详细信息”>“安装历史记录”),然后重新安装ADT。

Maybe eclipse -clean will help? 也许eclipse -clean会有所帮助吗? First delete plugin adt from Help->Install->What is already Installed, second install adt from Market place, use Eclipse for Java or C++ developers (this with the Java schema). 首先从帮助 - >安装 - >已安装的内容中删除插件adt,从Market放置第二个安装adt,使用Eclipse for Java或C ++开发人员(使用Java模式)。

暂无
暂无

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

相关问题 Eclipse:java.lang.RuntimeException:在注册表中找不到应用程序“ org.eclipse.ui.ide.workbench” - Eclipse: java.lang.RuntimeException: Application “org.eclipse.ui.ide.workbench” could not be found in the registry java.lang.RuntimeException:找不到注册表初始化文件 - java.lang.RuntimeException: Registry initialization file not found java.lang.RuntimeException:无法注入成员 - java.lang.RuntimeException: Could not inject members java.lang.RuntimeException:找不到资源? - java.lang.RuntimeException: Resource not found? android应用程序中的java.lang.RuntimeException - java.lang.RuntimeException with android application java.lang.RuntimeException:端口8686对内部rmi注册表不可用 - java.lang.RuntimeException: Port 8686 is not available for the internal rmi registry java.lang.RuntimeException: 请求启用 DevSupportManager,但未找到或无法创建 DevSupportManagerImpl 类 - java.lang.RuntimeException: Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be created 线程“ main”中的异常java.lang.RuntimeException:无法启动Selenium会话:找不到 - Exception in thread “main” java.lang.RuntimeException: Could not start Selenium session: Not Found RuntimeException:在注册表中找不到应用程序“”。 - RuntimeException: Application “” could not be found in the registry. Eclipse Helios-“ java.lang.RuntimeException:部件放置得太早了!” - Eclipse Helios - “java.lang.RuntimeException: Widget disposed too early!”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM