Getting Started with RCP (Rich Client Platform) (5) (End)

xiaoxiao2021-03-06  112

5. Creating a separate application

(1) Export application

l File> export ...

l Select Deployable Plug-Ins and Fragments from the list of export options, click Next button

l Select the Google plugin

l Select A Directory Structure in the Deploy AS drop-down box

l Click the Browse button, select an export location

l Click the Finish button to complete the export

(2) Copy the plugin and JAR files required

l Eclipse 3.0 does not provide tools that will be copied to the related plugins and JAR files to the export directory, so:

l Copy Startup.jar into the root directory of the export directory from the root directory of Eclipse 3.0.

l Plugins directory from Eclipse 3.0 copies the following directory to the Plugins directory of the export directory:

Ø Org.eclipse.core.expressions_3.0.0

Ø Org.eclipse.core.Runtime_3.0.0

Ø Org.eclipse.help_3.0.0

Ø Org.eclipse.jface_3.0.0

Ø Org.eclipse.osgi.Services_3.0.0

Ø Org.eclipse.osgi.UTIL_3.0.0

Ø Org.eclipse.osgi_3.0.0

Ø Org.eclipse.swt.win32_3.0.0

Ø org.eclipse.swt_3.0.0

Ø Org.eclipse.ui.Workbench_3.0.0

Ø Org.eclipse.ui_3.0.0

Ø Org.eclipse.Update.configurator_3.0.0

(3) Test procedure

l Create Startup.bat, including the following:

Java -cp startup.jar org.eclipse.core.launcher.main

-Application Google.googleApplication

Note: If a variety of JDK versions are installed, you need to specify its path in front of Java.

Attachment: Source code download (I don't support the RAR type because the upload file does not support the RAR type, I will change the extension to the PDF, please change the extension to RAR after downloading, then decompress)

转载请注明原文地址:https://www.9cbs.com/read-125341.html

New Post(0)