ConnectorLib Java 25.2
ConnectorLib Java SDK Programming Guide

# Build the Connector

The connector code can be built and archived into the required JAR file using the following command line commands:

    javac -cp JavaConnector.jar -d build src\myconnector\*.java

    jar cf dist\myconnector.jar -C build .

The javac and jar executables can then be found in the Java JDK 'bin' directory (on Windows this is usually something like: `c:\Program Files\Java\jdk1.7.0_45\bin\`)

These build commands assume that `JavaConnector.jar` is in the current directory, the `build` and `dist` directories exists, and that all source files are in the `src/myconnector` directory.

Any other dependencies of your connector should be included in the `classpath` argument of the `javac` command.

NOTE: Use Java JDK 1.5 or later to build the connector.

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery ConnectorLib Java 25.2

Topic Title: Build the Connector