Packaging JAR files for Rule Execution Server on Java SE

If you use Rule Execution Server in a stand-alone Java™ SE environment, only some of the provided JAR files are necessary. A tool is available to help you select and package the appropriate JAR files.

Before you begin

Find and select the JAR files that you need by using Ant and by referencing the executionserver.j2se.classpath variable. For more information, see Setting the class path for Java SE.

While deploying your application, enable IBM® License Metric Tool, and make sure that you have the correct license type: Deploy the files with the suffix .swidtag in <InstallDir>/license/ilmt.zip file along with the Rule Execution Server library JAR files. For more information, see Tagging for ILMT.

About this task

A number of JAR files are provided with the product distribution for you to build your applications. These JAR files are installed in the <ODM_InstallDir>/executionserver/lib folder. If you need to extract those files or if you do not use Ant to build your application, you can use the classpath-executionserver.xml file, which is provided in <ODM_InstallDir>/shared/tools/ant/bin/ant folder.
This Ant script provides three actions:
  • display: to display the list of JAR files
  • copy: to copy the necessary JAR files to a dedicated folder. Parameter: target.copy.dir
  • package: to compress the JAR files into a single portable archive named jse-res-jars.zip for redistribution. Parameter: target.zip.dir

Example

For example, on a DOS command line from the <ODM_InstallDir>/executionserver/lib directory, you can run the following commands:
..\..\shared\tools\ant\bin\ant -f classpath-executionserver.xml display
..\..\shared\tools\ant\bin\ant -f classpath-executionserver.xml copy -Dtarget.copy.dir=c:\myapplication\lib
..\..\shared\tools\ant\bin\ant -f classpath-executionserver.xml package -Dtarget.zip.dir=c:\myapplication\zip