|
Re: java.lang.RuntimeException: Application could not be found in the registry [message #683692 is a reply to message #683675] |
Tue, 14 June 2011 08:50 |
Eclipse User |
|
|
|
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.03888 seconds