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

  1. Follow the appropriate procedure for the plug-in project contents.
    Project Contents Procedure
    Third-Party JAR
    1. Select File > New > Project > Plug-in Development > Plug-in from existing JAR archives.
    2. Click Next.
    3. Click Add External.
    4. Navigate to the folder containing the JAR, click the JAR, and click Open.
    5. Click Next >.
    6. In the Project name field, type a project name.
    7. In the Plug-in ID field specify a plug-in ID.
    8. In the Plug-in Version field accept the default or specify a correctly formatted version.
    9. In the Target Platform area, click the an OSGi framework radio button and select Equinox from the drop-down list.
    10. Uncheck the Unzip the JAR archives into the project checkbox.
    Class Source
    1. Select File > New > Project... > Plug-in Development > Plug-in Project.
    2. In the Project name field, type a project name.
    3. In the Target Platform area, click the an OSGi framework radio button and select Equinox from the drop-down list.
    4. Click Next.
    5. In the Version field, accept the default or specify a correctly formatted version.
    6. In the Options area, uncheck the Generate an activator checkbox.
    7. Click Next.
    8. Uncheck the Create a plug-in using one of the templates checkbox.
  2. Click Finish.
    The Open Associated Perspective dialog displays.
  3. Click No.
    A plug-in project folder is added to the Project Explorer. The plug-in manifest opens in a manifest editor.
  4. If you are packaging class source, import the classes into the project's src folder.
    1. Right-click the src folder.
    2. Click Import.
    3. Click File System and click Next.
    4. Click the Browse button and navigate to a folder containing the source files.
    5. Check the checkboxes next to the files to import.
    6. Click Finish.
  5. Export the packages.
    1. In the Editor, click the Runtime tab.
    2. Click Add... to the right of the Exported Packages table.
    3. Select the packages containing the classes to be exported by the library.
    4. Click OK.
    5. Click the Properties button.
    6. In the Version field, specify a package version.
    7. Click OK.
  6. If you are packaging an Oracle database driver library:
    1. Click the Dependencies tab.
    2. In the Imported Packages area, click Add.
    3. In the Package Selection dialog, click org.ietf.jgss.
    4. Click OK.
  7. Click Save.