Eclipse applications use an application ID to launch and start execution. For E4 applications, org.eclipse.e4.ui.workbench.swt.E4Application
is used. Since this is specified within a product, to start with a new E4 application will be created.
com.packtpub.e4.application
, and step through the wizard. Choose the default values for each field.If you get a web browser launched when invoking the product, it may be that RAP is installed. If this happens, the product can be launched by going to the Run | Run As... and selecting the Eclipse Application type, followed by Run a product: com.packtpub.e4.application.product. Alternatively, the Overview tab has a Testing section, which includes a link to Launch an Eclipse Application.
!MESSAGE Application error !STACK 1 java.lang.RuntimeException: No application id has been found.
This indicates that the product was missing one or more dependencies in the product list. Some older versions of the E4 tools did not include required plug-ins such as javax.xml
. As a result, the runtime application fails to install, with the cryptic error that it can't find the application.
The new E4 wizard created a simple E4 rich client application, including creating some sample content (menus, commands, and so on). After fixing issues with missing dependencies, product launch operation starts the application successfully.
When running any kind of Eclipse application, it is good practice to stop the launch when there are missing dependencies. The launch configuration, visible via the Run | Run Configurations... menu, has an option on the plug-ins tab Validate plug-ins automatically prior to launching:
Now, when launching the product without adding the necessary plug-ins, a warning will be shown. Clicking on the Validate Plug-ins button can run this validation at any time.