Creating a Library Plug-in Project
You can create a library plug-in from a third-party JAR file or a class source. After you create the plug-in, you can create a custom feature for it or export it as a DAA.
- Procedure
- Follow the appropriate procedure for the plug-in project contents.
Project Contents Procedure Third-Party JAR - Select .
- Click Next.
- Click Add External.
- Navigate to the folder containing the JAR, click the JAR, and click Open.
- Click Next >.
- In the Project name field, type a project name.
- In the Plug-in ID field specify a plug-in ID.
- In the Plug-in Version field accept the default or specify a correctly formatted version.
- In the Target Platform area, click the an OSGi framework radio button and select Equinox from the dropdown list.
- Clear the Unzip the JAR archives into the project checkbox.
Class Source - Select .
- In the Project name field, type a project name.
- In the Target Platform area, click the an OSGi framework radio button and select Equinox from the dropdown list.
- Click Next.
- In the Version field, accept the default or specify a correctly formatted version.
- In the Options area, clear the Generate an activator checkbox.
- Click Next.
- Clear the Create a plug-in using one of the templates checkbox.
- Click
Finish.
The Open Associated Perspective dialog displays.
- Click
No.
A plug-in project folder is added to the Project Explorer. The plug-in manifest opens in a manifest editor.
- If you are packaging class source, import the classes into the
project's
src folder.
- Right-click the src folder.
- Click Import.
- Click File System and click Next.
- Click Browse and navigate to a folder containing the source files.
- Select the checkboxes next to the files to import.
- Click Finish.
- Export the packages.
- In the Editor, click the Runtime tab.
- Click Add to the right of the Exported Packages table.
- Select the packages containing the classes to be exported by the library.
- Click OK.
- Click Properties.
- In the Version field, specify a package version.
- Click OK.
- If you are packaging an Oracle database driver library:
- Click the Dependencies tab.
- In the Imported Packages area, click Add.
- In the Package Selection dialog, click org.ietf.jgss.
- Click OK.
- Click Save.