【正文】
to add a splash screen. Besides, the export wizard does not support the batch file approach so just stick with the native launcher. Give it a try! Execute the native launcher (eclipse or by default) outside Eclipse and watch the application e up. The name of the launcher is controlled by branding options in the product configuration. Troubleshooting Error: Launching failed because the plugin is not included... You can get this error when testing the product if you39。re building an open source project. Press Finish to build and export the program. The piler options for source and class patibility in the Eclipse Product export wizard will override any options you have specified on your project or global preferences. As part of the Export process, the plugin is code is repiled by an Ant script using these options. The application is now ready to run outside Eclipse. When you39。ll need to create a simplified version of the Eclipse install directory. This directory has to contain the native launcher program, config files, and all the plugins required by the product. Thankfully, we39。s really beyond the scope of this article though, so we39。re targeting! Now select the Configuration tab and click Add.... Select the plugin you just created () and then click on Add Required Plugins. Then go back to the Overview page and press Ctrl+S or File Save to save your work. If your application needs to reference plugins that cannot be determined until run time (for example the tomcat plugin), then add them manually in the Configuration tab. At this point you should test out the product to make sure it runs correctly. In the Testing section of the Overview page, click on Synchronize then click on Launch the product. If all goes well, the application should start up just like before. Plugins vs. features On the Overview page you may have noticed an option that says the product configuration is based on either plugins or features. The simplest kind of configuration is one based on plugins, so that39。ve just seen you can run a RCP application without defining a product, having one makes it a whole lot easier to run the application outside of Eclipse. This is one of the major innovations that Eclipse brought to RCP development. Some of the more plicated RCP templates already e with a product defined, but the Hello RCP template does not so we39。s equivalent of Hello, world. Click Finish to accept all the defaults and generate the project (see Figure 1). Eclipse will open the Plugin Manifest Editor. The Plugin Manifest editor puts a friendly face on the various configuration files that control your RCP application. Figure 1. The Hello World RCP project was created by a PDE wizard. Taking it for a spin Trying out RCP applications used to be somewhat tedious. You had to create a custom launch configuration, enter the right application name, and tweak the plugins that were included. Thankfully the PDE keeps track of all this now. All you have to do is click on the Launch an Eclipse Application button in the Plugin Manifest editor39。re targeting (at least ), and enable the option to Create an OSGi bundle manifest. Then click Next . Beginning in Eclipse