Export works, Running the export fails #505

Submitted 3 years ago

I can export the plug-in and run it successfully.

However, as soon as I add the feature project and configure the product to be based on features it will no longer run and provides the following error;

!SESSION 2020-07-15 08:38:58.321 ----------------------------------------------- eclipse.buildId=unknown java.version=1.8.0_261 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -clearPersistedState -clearPersistedState Command-line arguments: -os win32 -ws win32 -arch x86_64 -clearPersistedState -clearPersistedState

!ENTRY org.eclipse.osgi 4 0 2020-07-15 08:38:59.225 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: Application "org.eclipse.e4.ui.workbench.swt.E4Application" could not be found in the registry. The applications available are: org.eclipse.equinox.app.error. at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:252) at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:33) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) 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:657) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594) at org.eclipse.equinox.launcher.Main.run(Main.java:1447)


  3 years ago

Sounds like the the org.eclipse.e4.rcp feature is missing in your product. If you start the application via the product do you get the same error?

  3 years ago

Got the feedback via email that this works if started from the IDE.

I assume that this may be another issue from the PDE build (which is not maintained anymore).

This should definitely result in a working rcp application.

  3 years ago

I will do as you suggest and try the Maven Tycho build when I get there. Thanks for the quick responses!

  3 years ago

Thanks for the feedback. I close this one, please reopen or create a new issue if you face the same issue with the Tycho build.

Please login to write a comment.