Convert JDBC driver JARs to OSGi bundle JARs to use with Gateway Java.
- Download the JDBC driver JAR file.
This example uses a Microsoft SQL Server JDBC driver JAR file.
- Open Eclipse, and select .
- Under Plug-in Development, select Plug-in
from Existing JAR Archives, and click
- Click Add External, browse to the JDBC JAR file that you downloaded,
and click Next.
- In the Plug-In Project Properties dialog:
- Verify that these options are all selected:
- Analyze library contents and add
- Unzip the JAR archives into the
- Update references to the JAR files
- Set the value of This plug-in is targeted to run with to
OSGI framework, and select
- Enter values in these fields:
- Plug-in ID –
- Plug-in Version –
- Plug-in Name –
- Plug-in Vendor –
Note These sample values are for a SQL Server JDBC driver; actual
values depend on the JDBC JAR file to convert.
- Click Next, then click
- Select the Runtime tab, and validate that the Exported
Packages list is populated. If it is not:
- Select the MANIFEST.MF tab, and manually add the
The packages are inside the selected JDBC driver JAR file. For
- Save your settings.
- Select the Runtime tab again, verify that the Exported
Packages list is populated, and save the project.
- In the Package Explorer, right-click the project folder, and select
- In the Export dialog, expand Plug-in Development, select
Deployable plug-ins and fragments, and click
- On the Destination tab, enter a directory, and click
- Verify that the JAR file was generated in your destination directory, in the
You can safely ignore any error messages.
- Copy the generated OSGi bundle JAR file to the