Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » RCP application
RCP application [message #263136] Thu, 22 July 2004 09:08 Go to next message
Eclipse UserFriend
Hello,

I'm trying to create a stand-alone RCP application in the way proposed
in Pascal Rapicault's article "Exporting an RCP application". The
application works great when started from the PDE workbench. However,
when I start eclipse.exe (from R3.0 RCP), I get a RuntimeException
(see below). My plug-in is listed in the osgi.bundles and includes an
appropriate extension point:

<extension
id="CrmApplication"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="de.cuc.crm.rcp.CrmApplication">
</run>
</application>
</extension>

Any idea what I am doing wrong?

Thanks,

-- Jan

!SESSION Jul 22, 2004 15:06:03.882
---------------------------------------------
eclipse.buildId=I200406251208
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE

!ENTRY org.eclipse.osgi Jul 22, 2004 15:06:03.882
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "CrmApplication" could not be
found in the registry. The applications available are: <NONE>.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:325)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
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.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Re: RCP application [message #263175 is a reply to message #263136] Thu, 22 July 2004 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

Did you set the property "eclipse.application" to
"de.cuc.crm.rcp.CrmApplication". This means the extension point of type
"org.eclipse.core.runtime.applications" in the plugin "de.cuc.crm.rcp" with
the id "CrmApplication" will be started.

The error means that the Eclipse Platform could not find the application
class. A better solution could be to define a product extension point in the
plugin descriptor.

For example the Eclipse IDE is configured with
"eclipse.product=org.eclipse.platform.ide" this means in the plugin
"org.eclipse.platform" must be an extension point of type
"org.eclipse.core.runtime.products" with the id "ide". This extension point
defines the product to start. Below is the extension point from the plugin
"org.eclipse.platform"..

<extension id="ide" point="org.eclipse.core.runtime.products">
<product name="%productName"
application="org.eclipse.ui.ide.workbench" description="%productBlurb">
<property name="windowImages" value="eclipse.gif,eclipse32.gif"/>
<property name="aboutImage" value="eclipse_lg.gif"/>
<property name="aboutText" value="%productBlurb"/>
<property name="appName" value="Eclipse"/>
<property name="preferenceCustomization"
value="plugin_customization.ini"/>
</product>
</extension>

The defined product has as attributes the name and the application to start.
Here you can see that the application to start is in the plugin
"org.eclipse.ui.ide" and is defined as extension point with the id
"workbench". Below is the extension point from the "org.eclipse.ui.ide"
plugin.

<extension
id="workbench"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="org.eclipse.ui.internal.ide.IDEApplication">
</run>
</application>
</extension>

Greetings
Daniel
Re: RCP application [message #263184 is a reply to message #263175] Thu, 22 July 2004 10:24 Go to previous message
Eclipse UserFriend
Hello Daniel,

thanks for the information, I'll consider this.

In the meantime - the reason for the error message was that I hadn't
included all the relevant plug-ins in osgi.bundles properly -
osgi.bundles seems to be an ordered list with dependencies. Under some
circumstances (namely a typo where I had an "\" in there but not ", \"
at the end of a line... poor me), the error message is a bit
inconclusive...

Thanks a lot for your suggestion - I'll try that as well, may be a
better approach.

-- Jan

On Thu, 22 Jul 2004 16:11:34 +0200, "Daniel Rohe"
<daniel.rohe@stud.tu-ilmenau.de> wrote:
Previous Topic:Way to automatically build for update site?
Next Topic:Is there an extension point for forcing a plug-in to unload last?
Goto Forum:
  


Current Time: Tue Jul 22 15:49:02 EDT 2025

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

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

Back to the top