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
File > New > Project > Plug-in Development > Plug-in from existing JAR archives.
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 drop-down list.
Uncheck the
Unzip the JAR archives into the
project checkbox.
Class Source
Select
File > New > Project... > Plug-in Development > Plug-in Project.
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 drop-down list.
Click
Next.
In the Version
field, accept the default or specify a correctly formatted version.
In the Options
area, uncheck the
Generate an activator checkbox.
Click
Next.
Uncheck 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 the
Browse button and navigate to a folder
containing the source files.
Check 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 the
Properties button.
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.