Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » java.lang.RuntimeException: Application could not be found in the registry (java.lang.RuntimeException: Application could not be found in the registry )
icon8.gif  java.lang.RuntimeException: Application could not be found in the registry [message #1753125] Thu, 02 February 2017 05:34
Sumit Fataniya is currently offline Sumit FataniyaFriend
Messages: 12
Registered: July 2016
Junior Member
Hi ,
I exported my rcp plugin based on the running configuration I previously had.
When trying to run it, I get the following error:

My file exporting file windows 32 bit and 64 bit .
index.php/fa/28300/0/
My system configuration:
OS: win 10 64 bit,
Java:JavaSE1.8
Eclipse Kepler
Eclipse for RCP and RAP Developers
Version: Kepler Service Release 2
These are plugin snap shot in RCP application product file:
index.php/fa/28296/0/index.php/fa/28297/0/
index.php/fa/28297/0/
index.php/fa/28298/0/
index.php/fa/28299/0/
!ENTRY org.eclipse.osgi 4 0 2017-02-02 10:29:39.572
!MESSAGE Application error
!STACK 1

java.lang.RuntimeException: Application "RCP_Demo.application" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error.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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)


I checked - all the plugins are present in the RCP plugins dir and I also have the appropriate extension point in plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="rcp_demo.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="RCP Perspective"
class="rcp_demo.Perspective"
id="RCP_Demo.perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="rcp_demo.Help.AboutCommand"
id="RCP_Demo.command1.about"
name="About">
</command>
<command
defaultHandler="handler.UserCommand"
id="rcp_demo.Editor.UserCommand"
name="Call UserEditor">
</command>
<command
defaultHandler="handler.EmpHandler"
id="rcp_demo.Editor.EmpCommand"
name="call EmpEditor">
</command>
<command
defaultHandler="handler.SwitchingHandler"
id="RCP_Demo.switcheditorcmd_id"
name="SwitchEditorCom">
</command>
<command
defaultHandler="handler.HelloHandler"
id="RCP_Demo.keybindinghello"
name="NewHello">
</command>
<command
defaultHandler="handler.StaffDetailsHandler"
id="RCP_Demo.StaffDetails_Command_id"
name="StaffDetails_command">
</command>
<command
defaultHandler="handler.FoodDetailsHandler"
id="RCP_Demo.FoodDetails_Command_id"
name="FoodDetailsCommand">
</command>
<command
defaultHandler="handler.EnquiryHandler"
id="RCP_Demo.Enquiry_id"
name="EnquiryCommand">
</command>
<command
defaultHandler="handler.BackEditorHandler"
id="RCP_Demo.backEditor_Command"
name="BackEditor">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="true"
locationURI="menu:org.eclipse.ui.main.menu">
<menu
id="mnfile"
label="File"
tooltip="File">
<command
commandId="org.eclipse.ui.file.newQuickMenu"
icon="icons/new-file.png"
id="new"
label="New"
style="push"
tooltip="New">
</command>
<menu
icon="icons/open.png"
label="Open">
<command
commandId="rcp_demo.Editor.UserCommand"
label="Student_Info"
style="push">
</command>
<command
commandId="rcp_demo.Editor.EmpCommand"
label="Employee_info"
style="push">
</command>
<command
commandId="RCP_Demo.StaffDetails_Command_id"
label="StaffDetails_info"
style="push">
</command>
<command
commandId="RCP_Demo.FoodDetails_Command_id"
label="FoodDetails_info"
style="push">
</command>
<command
commandId="RCP_Demo.Enquiry_id"
label="Enquiry_info"
style="push">
</command>
</menu>
<separator
name="RCP_Demo.separator3"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.file.close"
label="Close"
style="push"
tooltip="Close">
</command>
<command
commandId="org.eclipse.ui.file.closeAllSaved"
label="Close All Save"
style="push"
tooltip="Close All Save">
</command>
<separator
name="RCP_Demo.separator4"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.file.save"
icon="icons/save-icon-png--4.png"
label="Save"
style="push"
tooltip="Save">
</command>
<command
commandId="org.eclipse.ui.file.saveAll"
icon="icons/save-all.png"
label="Save All"
style="push"
tooltip="Save All">
</command>
<separator
name="RCP_Demo.separator1"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.file.print"
icon="icons/print.png"
label="Print"
style="push"
tooltip="Print">
</command>
<separator
name="RCP_Demo.separator7"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.file.import"
icon="icons/import.png"
label="Import"
style="push"
tooltip="Import">
</command>
<command
commandId="org.eclipse.ui.file.export"
icon="icons/export.png"
label="Export"
style="push"
tooltip="Export">
</command>
<separator
name="RCP_Demo.separator5"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.file.properties"
label="Properties"
style="push"
tooltip="Properties">
</command>
<separator
name="RCP_Demo.separator6"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.file.exit"
icon="icons/Exit.png"
label="Exit"
style="push"
tooltip="Exit">
</command>
</menu>
<menu
id="mnedit"
label="Edit"
tooltip="Edit">
<command
commandId="org.eclipse.ui.edit.undo"
icon="icons/Undo-icon.png"
label="Undo"
style="push"
tooltip="Undo">
</command>
<command
commandId="org.eclipse.ui.edit.redo"
icon="icons/Redo-icon.png"
label="Redo"
style="push"
tooltip="Redo">
</command>
<separator
name="RCP_Demo.separator9"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.edit.cut"
icon="icons/Cut.png"
id="cut"
label="Cut"
style="push"
tooltip="Cut">
</command>
<command
commandId="org.eclipse.ui.edit.copy"
icon="icons/Copy.png"
label="Copy"
style="push"
tooltip="Copy">
</command>
<command
commandId="org.eclipse.ui.edit.paste"
icon="icons/paste-icon.png"
label="Paste"
style="push"
tooltip="Paste">
</command>
<separator
name="RCP_Demo.separator2"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.edit.delete"
icon="icons/delete.png"
label="Delete"
style="push"
tooltip="Delete">
</command>
<command
commandId="org.eclipse.ui.edit.findReplace"
label="Find/Replace"
style="push"
tooltip="Find/Replace">
</command>
</menu>
<menu
label="Search"
tooltip="Search">
<command
commandId="org.eclipse.ui.help.helpSearch"
icon="icons/search.png"
label="Search"
style="push"
tooltip="Search">
</command>
</menu>
<menu
label="Help"
tooltip="Help">
<command
commandId="RCP_Demo.command1.about"
label="About"
style="push"
tooltip="About">
</command>
</menu>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="toolbar:org.eclipse.ui.main.toolbar">
<toolbar
id="toolbar1">
<command
commandId="rcp_demo.Editor.UserCommand"
icon="icons/student.png"
style="push"
tooltip="New Student File">
</command>
<command
commandId="rcp_demo.Editor.EmpCommand"
icon="icons/employee.png"
style="push"
tooltip="New Employee Editor">
</command>
<command
commandId="RCP_Demo.StaffDetails_Command_id"
icon="icons/Staff.png"
style="push"
tooltip="Staff Detasils">
</command>
<command
commandId="RCP_Demo.FoodDetails_Command_id"
icon="icons/Popcorn-icon.png"
style="push"
tooltip="FoodDeails Editor">
</command>
<command
commandId="RCP_Demo.Enquiry_id"
icon="icons/contact_icon.png"
style="push"
tooltip="Enquiry Ask">
</command>
<command
commandId="org.eclipse.ui.file.save"
icon="icons/save-icon-png--4.png"
style="push"
tooltip="Save">
</command>
<command
commandId="org.eclipse.ui.file.saveAll"
icon="icons/save-all.png"
style="push"
tooltip="Save All">
</command>
<command
commandId="org.eclipse.ui.file.print"
icon="icons/print.png"
style="push"
tooltip="Print">
</command>
<separator
name="RCP_Demo.separator1"
visible="true">
</separator>
<command
commandId="org.eclipse.ui.edit.undo"
icon="icons/Undo-icon.png"
style="push"
tooltip="Undo">
</command>
<command
commandId="org.eclipse.ui.edit.redo"
icon="icons/Redo-icon.png"
style="push"
tooltip="Redo">
</command>
<command
commandId="org.eclipse.ui.file.exit"
icon="icons/Exit.png"
style="push"
tooltip="Exit">
</command>
<separator
name="RCP_Demo.separator1"
visible="true">
</separator>
</toolbar>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.views">
<view
class="rcp_demo.Views.ContactView"
icon="icons/contactview.png"
id="RCP_Demo.Views.contact"
name="Contact"
restorable="true">
</view>
<view
class="rcp_demo.Views.CategoryView"
icon="icons/categoryview.png"
id="RCP_Demo.Views.category"
name="Category"
restorable="true">
</view>
<view
class="rcp_demo.Views.HistoryView"
icon="icons/Historyview.png"
id="RCP_Demo.Views.history"
name="History"
restorable="true">
</view>
<view
class="rcp_demo.Views.TaskView"
icon="icons/Tasksview.png"
id="RCP_Demo.Views.task"
name="Task"
restorable="true">
</view>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="RCP_Demo.perspective">
<view
closeable="true"
id="RCP_Demo.Views.task"
minimized="false"
moveable="true"
relationship="right"
relative="org.eclipse.ui.editorss"
showTitle="true">
</view>
</perspectiveExtension>
<perspectiveExtension
targetID="RCP_Demo.perspective">
<view
closeable="true"
id="RCP_Demo.Views.contact"
minimized="false"
moveable="true"
relationship="left"
relative="org.eclipse.ui.editorss"
showTitle="true"
visible="true">
</view>
<view
closeable="true"
id="RCP_Demo.Views.category"
minimized="false"
moveable="true"
relationship="stack"
relative="RCP_Demo.Views.contact"
showTitle="true"
visible="true">
</view>
<view
closeable="true"
id="RCP_Demo.Views.history"
minimized="true"
moveable="true"
relationship="bottom"
relative="RCP_Demo.Views.contact"
showTitle="true"
visible="true">
</view>
</perspectiveExtension>
</extension>
<extension
point="org.eclipse.ui.editors">
<editor
class="rcp_demo.Editor.UserEditor"
default="false"
id="rcp_demo.Editor.user"
name="Student_Editor">
</editor>
<editor
class="rcp_demo.Editor.EmployeeEditor"
default="false"
id="rcp_demo.Editor.emp"
name="Employee_Editor">
</editor>
<editor
class="rcp_demo.Editor.StaffdetailsEditor"
default="false"
id="rcp_demo.Editor.StaffdetailsEditor"
name="StaffdetailsEditor">
</editor>
<editor
class="rcp_demo.Editor.FoodDetailsEditor"
default="false"
id="rcp_demo.Editor.FoodDetailsEditor"
name="Food_Details">
</editor>
<editor
class="rcp_demo.Editor.EnquiryEditor"
default="false"
id="rcp_demo.Editor.EnquiryEditor"
name="Enquiry_Details">
</editor>
</extension>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="RCP_Demo.application"
name="RCP_Demo">
</product>
</extension>
<extension
id="product1"
point="org.eclipse.core.runtime.products">
<product
application="RCP_Demo.application"
name="demo_RCPApp">
<property
name="appName"
value="demo_RCPApp">
</property>
<property
name="startupForegroundColor"
value="FFFFFF">
</property>
<property
name="startupMessageRect"
value="7,252,445,20">
</property>
<property
name="startupProgressRect"
value="5,275,445,15">
</property>
<property
name="preferenceCustomization"
value="plugin_customization.ini">
</property>
</product>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="RCP_Demo.switcheditorcmd_id"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+TAB">
</key>
<key
commandId="RCP_Demo.backEditor_Command"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M2+TAB">
</key>
</extension>

</plugin>
What am I missing?

  • Attachment: re1.JPG
    (Size: 38.82KB, Downloaded 382 times)
  • Attachment: re2.JPG
    (Size: 42.92KB, Downloaded 362 times)
  • Attachment: re3.JPG
    (Size: 41.37KB, Downloaded 349 times)
  • Attachment: re4.JPG
    (Size: 20.81KB, Downloaded 356 times)
  • Attachment: re5.JPG
    (Size: 56.12KB, Downloaded 463 times)
Previous Topic:java.lang.RuntimeException: Application "xxxxx" could not be found in the registry
Next Topic:create custom Toolbar in eclipse rcp
Goto Forum:
  


Current Time: Tue Nov 13 04:31:27 GMT 2018

Powered by FUDForum. Page generated in 0.01962 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top