Knowledge Base

Notice Information in this article applies to Excelsior JET version 4.5 and above. For versions 2.5 through 4.1, see article #5.


To enable the use of security providers in JET-compiled applications, their implementing JARs must be handled in a special way, namely they should be packed to the resulting executable as a whole.

An example of using the BouncyCastle security provider [1] can be found in the Supplemental Downloads section.


Typically, security provider APIs check their implementing classes for consistency at run-time. Therefore the original security provider classes should be available to the running application. The JET Optimizer provides an option to pack JARs into executables, which can be used to pack a security provider JAR.

You can easy do this in JET Control Panel. The central area of the "Classpath" page of JET Control Panel is occupied by the classpath grid. Each line in the grid corresponds to a single classpath entry - a directory or a JAR file. The last column, named Pack into exe, specifies the resource packing mode for each entry. Click the cell for a security provider JAR, and select the "original jar/zip" item.


  1. BouncyCastle security provider
  2. JET User’s Guide, The JET Control Panel, Step 3: Selecting a compilation mode, Classpath grid
  3. Excelsior JET User’s Guide (, Chapter “Application Considerations”, section “Resource packing”.


Article ID: 29
Last Revised On: 25-Jul-2006