Adding external libraries

You can add external libraries.

About this task

You can express a dependency on an external JAR and use it in your function. The assumption is that you have a plug-in that is defined in Eclipse as explained in Create the plug-ins in Eclipse. To add external libraries, do the following steps:

Procedure

  1. Copy the external JAR to the root of the plug-in project.
  2. Add the JAR to the plug-in projects build path.
    1. Right-click the project and select Properties > Java Build Path > Libraries.
    2. Click Add JARs and browse for the JAR you just added under the plug-in project.
    3. Close the Properties dialog.
  3. Open the plug-ins manifest file for editing and select the Runtime tab.
  4. In the Classpath section, click Add and select the JAR that was copied into the project.
  5. Save the manifest when finished.

    Now you can start by using the JARs functionality inside your function.