Excelsior Logo Home
Company Products Services Resources Contact

HOWTO: Compile an application that uses a security provider (Excelsior JET 4.1 and below)

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

PDF Version: 000005.pdf

The information in this article applies to:

  • Excelsior JET versions 2.5 through 4.1

This article does not apply to Excelsior JET 4.5 and above.

The similar article for Excelsior JET 4.5 and above can be found here 000029.


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 here.


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.

To do this, perform the following steps:

  1. On the "Classes" page of JET Control Panel add the security provider JAR to the classpath and force it into the compilation set.
  2. On the "Resources" page, select that JAR in the resourcepath and select the "Pack entire jar/zip file" button.

    Note for the users of Excelsior JET 3.7 and below: in Excelsior JET prior to version 4.0 this option is called "Bind with classes".


  1. BouncyCastle security provider http://www.bouncycastle.org
  2. JET User’s Guide http://www.excelsior-usa.com/doc/jet/jetw.html, The JET Control Panel, Step 3: Selecting classes to compile, Step 4: Resources.
  3. Excelsior JET User’s Guide (http://www.excelsior-usa.com/jetdoc.html), Chapter “Application Considerations”, section “Resource packing”.

Home | Company | Products | Services | Resources | Blog | Contact

Store | Downloads | Support | Forum | Blog | Sitemap

© 1999-2012 Excelsior LLC. All Rights Reserved.