RuntimeException:应用程序“”在注册表中找不到。 [英] RuntimeException: Application "" could not be found in the registry.

查看:1220
本文介绍了RuntimeException:应用程序“”在注册表中找不到。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景



目标:我正在尝试在Windows 7 64位上安装Eclipse插件的Simics Tools。



我正在使用Eclipse Indigo for Java(64位< - 这将是一个问题),并刚刚安装了C / C ++ IDE插件,GEF draw2d插件和Eclipse的Simics Tools。一旦这些插件的安装成功完成,我重新启动了Eclipse,并继续从Eclipse内部启动Simics Control。一个错误对话框表示这个插件无法在64位Eclipse上运行。



为了解决这个问题,我决定安装一个32位版本的Eclipse,安装并卸载我刚从Eclipse安装的插件(C / C ++,GEF和Simics)。首先,我要删除插件以避免浪费空间。我去了帮助 - >关于 - >安装详细信息,并选择要卸载的已安装的插件。删除插件似乎是成功的,直到我重新启动Eclipse。



问题



删除插件后,Eclipse启动时,即将出现启动屏幕,而不显示进度条沿着底部显示当前正在加载的内容。几秒钟后,启动画面消失,出现错误对话框:发生错误。请参阅日志文件C:\Program Files(x86)\eclipse\configuration\1322503657546.log



内容1322503657546.log:

 !SESSION 2011-11-28 12:07:37.255 --------------- -------------------------------- 
eclipse.buildId = I20110613-1736
java.version = 1.7.0
java.vendor = Oracle Corporation
BootLoader常量:OS = win32,ARCH = x86_64,WS = win32,NL = en_US
框架参数:-product org.eclipse.epp .package.cpp.product
命令行参数:-os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product

!ENTRY org.eclipse .osgi 4 0 2011-11-28 12:07:39.521
!MESSAGE应用程序错误
!STACK 1
java.lang.RuntimeException:在注册表中找不到应用程序。可用的应用有:com.google.gwt.eclipse.core.GWTCodeFormatterApplication,com.virtutech.simics.ui.app,com.virtutech.simics.ui.appAn,com.virtutech.simics.ui.simpleSimicsApplication,org.eclipse .ant.core.antRunner,org.eclipse.ant.ui.antRunner,org.eclipse.cdt.core.GeneratePDOM,org.eclipse.datatools.connectivity.console.profile.StorageFileEditor,org.eclipse.emf.codegen.CodeGen ,org.eclipse.emf.codegen.JMerger,org.eclipse.emf.codegen.ecore.Generator,org.eclipse.emf.importer.ecore.Ecore2GenModel,org.eclipse.emf.importer.java.Java2GenModel,org.eclipse .emf.importer.rose.Rose2GenModel,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。等价的。 Eclipse.qui base.helpApplication,org.eclipse.help.base.indexTool,org.eclipse.jdt.apt.core.aptBuild,org.eclipse.jdt.core.JavaCodeFormatter,org.eclipse.pde.build.Build,org.eclipse。 pde.junit.runtime.uitestapplication,org.eclipse.pde.junit.runtime.legacytestapplication,org.eclipse.pde.junit.runtime.coretestapplication,org.eclipse.pde.junit.runtime.coretestapplicationnonmain,org.eclipse.pde。 junit.runtime.nonuithreadtestapplication,org.eclipse.ui.ide.workbench,org.eclipse.uml2.uml.ecore.importer.UML2GenModel,org.eclipse.update.core.standaloneUpdate,org.eclipse.up date.core.siteOptimizer,org.eclipse.wst.jsdt.core.JavaCodeFormatter,org.eclipse.wst.server.preview.preview。
在org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
在org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher。 java:79)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter。 java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown来源)
在java.lang.reflect.Method.invoke(未知源)
在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
在org。蚀。 equinox.launcher.Main.basicRun(Main.java:577)
在org.eclipse.equinox.launcher.Main.run(Main.java:1410)
在org.eclipse.equinox.launcher。 Main.main(Main.java:1386)

重要的行似乎是 java.lang.RuntimeException:在注册表中找不到应用程序。搜索网页后,似乎是一个通用错误。



资源:





想法




  1. 删除/ eclipse /配置文件夹并重新启动。失败。

  2. 编辑config.ini。 我应该担心的是, eclipse.product eclipse.application 是空白的? p>

    config.ini的内容:

     #这个配置文件是由:
    org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
    #Mon Nov 28 11:18:26 CST 2011
    org.eclipse.update.reconcile = false
    eclipse.p2.profile = epp.package.jee
    osgi.instance.area.default=@user.home/workspace
    osgi.framework = file\:plugins / org.eclipse.osgi_3.7.0 .v20110613.jar
    equinox.use.ds = true
    eclipse.buildId = I20110613-1736
    osgi.bundles = reference\:file\:org.eclipse.equinox.simpleconfigurator_1。 0.200.v20110502-1955.jar@1\:start
    org.eclipse.equinox.simpleconfigurator.configUrl = file\:org.eclipse.equinox.simpleconfigurator / bundles.info
    eclipse.product =
    osgi.splashPath = platform\:/base/plugins/org.eclipse.platform
    osgi.framework.extensions = reference\ :file\:javax.transaction_1.1.1.v201105210645.jar
    osgi.bundles.defaultStartLevel = 4
    eclipse.p2.data.area=@config.dir /../ p2 /
    eclipse.application =


  3. 编辑eclipse.ini。



    eclipse.ini的内容:

      -startup 
    plugins / org.eclipse.equinox $。$ org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -product
    org.eclipse.epp.package .cpp.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -vmargs
    -Dosgi.requiredJavaVersion = 1.5
    -Xms512m
    -Xmx1024m


如何再次成功启动Eclipse?我真的不需要执行一个干净的安装,因为花了很长时间才能设置。



提前感谢!

解决方案

空的

 eclipse.application = 


在config.ini中是问题。
您可以使用的默认值是

 eclipse.application = org.eclipse.ui.ide.workbench 

空eclipse.product的相同计数

 eclipse.product = org.eclipse.platform.ide 


Background

Goal: I am attempting to install the Simics Tools for Eclipse plugin on Windows 7 64-bit.

I am using Eclipse Indigo for Java (64-bit <-- This will be a problem later) and have just installed the C/C++ IDE plugin, GEF draw2d plugin, and the Simics Tools for Eclipse. Once the installation of these plugins successfully finished, I restarted Eclipse and proceeded to launch Simics Control from inside Eclipse. An error dialog stated that this plugin could not run on 64 bit Eclipse.

To solve this problem, I decided to install a 32-bit version of Eclipse next to my current setup and to uninstall the plugins I had just installed (C/C++, GEF, and Simics) from Eclipse. First, I was going to remove the plugins to avoid wasting space. I went to Help->About->Installation Details and selected the installed plugins to uninstall. Removing the plugins appeared to be successful until I restarted Eclipse.

Issue

After the removal of the plugins, when Eclipse launches, the splash screen appears without a progress bar along the bottom to show what is currently being loaded. After a few seconds, the splash screen disappears and an error dialog shows up: An error has occurred. See the log file C:\Program Files (x86)\eclipse\configuration\1322503657546.log

Contents of 1322503657546.log:

!SESSION 2011-11-28 12:07:37.255 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product

!ENTRY org.eclipse.osgi 4 0 2011-11-28 12:07:39.521
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "" could not be found in the registry. The applications available are: com.google.gwt.eclipse.core.GWTCodeFormatterApplication, com.virtutech.simics.ui.app, com.virtutech.simics.ui.appAn, com.virtutech.simics.ui.simpleSimicsApplication, org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.cdt.core.GeneratePDOM, org.eclipse.datatools.connectivity.console.profile.StorageFileEditor, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.emf.importer.java.Java2GenModel, org.eclipse.emf.importer.rose.Rose2GenModel, 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.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.pde.build.Build, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.ui.ide.workbench, org.eclipse.uml2.uml.ecore.importer.UML2GenModel, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.wst.jsdt.core.JavaCodeFormatter, org.eclipse.wst.server.preview.preview.
    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:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    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:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

The important line appears to be java.lang.RuntimeException: Application "" could not be found in the registry. After searching the web, it appears that this is a generic error.

Resources:

Ideas

  1. Removing /eclipse/configuration folder and relaunching. Failed.
  2. Edit config.ini. Should I be concerned that eclipse.product and eclipse.application are blank?

    Contents of config.ini:

    #This configuration file was written by:
    org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
    #Mon Nov 28 11:18:26 CST 2011
    org.eclipse.update.reconcile=false
    eclipse.p2.profile=epp.package.jee
    osgi.instance.area.default=@user.home/workspace
    osgi.framework=file\:plugins/org.eclipse.osgi_3.7.0.v20110613.jar
    equinox.use.ds=true
    eclipse.buildId=I20110613-1736
    osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110502-1955.jar@1\:start
    org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
    eclipse.product=
    osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
    osgi.framework.extensions=reference\:file\:javax.transaction_1.1.1.v201105210645.jar
    osgi.bundles.defaultStartLevel=4
    eclipse.p2.data.area=@config.dir/../p2/
    eclipse.application=
    

  3. Edit eclipse.ini.

    Contents of eclipse.ini:

    -startup
    plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    -product
    org.eclipse.epp.package.cpp.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    256M
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms512m
    -Xmx1024m
    

How can I successfully launch Eclipse again? I would really rather not have to perform a clean install since it took a long time to get it set up.

Thanks in advance!

解决方案

Empty

eclipse.application= 

in config.ini is problem. Default value you can use is

eclipse.application=org.eclipse.ui.ide.workbench

Same counts for empty eclipse.product

eclipse.product=org.eclipse.platform.ide

这篇关于RuntimeException:应用程序“”在注册表中找不到。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆