skip to main content
Corticon Extensions Guide : Building the Java classes and JARs
 

Try Corticon Now

Building the Java classes and JARs

The Extended Operator and Service Callout samples contain Java projects demonstrating how to create a Java extension. These are standard Java projects. Each has the Corticon JAR file that defines its API, CcExtensionApi.jar, located in a Studio installation at [CORTICON_HOME]/Studio/lib/. The JAR is added to the project from its Corticon installed location to the project's build path using the predefined Eclipse variable CORTICON_HOME. For example:
Build the Java project by right-clicking on the project name, and then choosing Export. In the Export Dialog, choose Java > Jar file. Enter a destination location for the JAR file, then choose appropriate options, and click Finish.

Adding JARs to a rules project

To add JARs to a rules project:
1. Right-click on a project name in the Studio's Project Explorer that requires additional JARs, and then choose Properties.
2. Click Corticon Extensions.
3. Navigate in the panel to locate and list all JAR files used by the project, as illustrated:
All the listed JARs will be added to compiled EDS as dependent JARs, but only the ones that are checked will also be included in the compiled EDS file.
4. Click OK to save the project properties.
When you use the Studio feature of Package and Deploy > Save for later Deployment, the JAR dependencies and inclusions will be added into the .eds file.