| java.lang.RuntimeException: Application could not be found in the registry [message #683675] |
Tue, 14 June 2011 04:26  |
Lior Missing name Messages: 18 Registered: February 2011 |
Junior Member |
|
|
Hi People,
I exported my rcp plugin based on the running configuration I previously had.
When trying to run it, I get the following error:
java.lang.RuntimeException: Application "com.myapp.app.Run" 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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
I tripled checked - all the plugins are present in the RCP plugins dir and I also have the appropriate extension point in plugin.xml:
<extension
id="myapplication"
name="My Application"
point="org.eclipse.core.runtime.applications">
<application>
<run class="com.myapp.app.Application"/>
</application>
</extension>
And also have the product extension present...
What am I missing?
Thanks,
Lior
|
|
|
| Re: java.lang.RuntimeException: Application could not be found in the registry [message #683692 is a reply to message #683675] |
Tue, 14 June 2011 04:50   |
|
Originally posted by:
On 2011-06-14 10:26, Lior wrote:
> Hi People,
> I exported my rcp plugin based on the running configuration I previously
> had.
> When trying to run it, I get the following error:
> java.lang.RuntimeException: Application "com.myapp.app.Run" 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:369)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
> I tripled checked - all the plugins are present in the RCP plugins dir
> and I also have the appropriate extension point in plugin.xml:
> <extension
> id="myapplication"
> name="My Application"
> point="org.eclipse.core.runtime.applications">
> <application>
> <run class="com.myapp.app.Application"/>
> </application>
> </extension>
> And also have the product extension present...
>
> What am I missing?
This is a very fundamental error, that can basically mean everything.
One possible reason is that your code depends on Java 1.5 features and
your RCP program is started by Java 1.4. So check first whether the
logging shows that the Java version is appropriate.
HTH & Greetings from Bremen,
Daniel Krügler
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02500 seconds