Install Guide
Binary Installation 13
RSA BSAFE SSL-J 6.2.6 Installation Guide
Build and Run the Samples
This release of SSL-J has standalone and client-server samples. The standalone
samples demonstrate utility functionality such as obtaining the version number of the
toolkit and checking that the JRE configuration is correct for using SSL-J.
Sample source code is available for each API:
• The SSL-J samples are in
root/sslj/sample/src/sslj
• The JSSE samples are in root/sslj/sample/src/jsse.
There are two ways to build and run the samples for SSL-J; use the Integrated
Development Environment (IDE) project files, or use the build scripts:
• Use IDE project files
The project files to build and run the samples have been included in this release of
SSL-J for the following development environments:
– JetBrains IntelliJ 9.0 IDE
– Eclipse 3.3 IDE.
These project files are located at
root/sslj.
• Use Apache Ant build scripts
Build scripts to build and run the samples are included in this release of SSL-J at
root/sslj. Ensure that your execution path will allow the ant command to be
executed.
In the following instructions, replace api_name
with either sslj or jsse as
required.
To build the sample code:
1. Navigate to the sslj directory:
cd root/sslj
2. Build the samples. Compile all the samples for the relevant API:
ant -f build-api_name.xml
To run the sample code:
1. Run the samples from the sslj directory:
a. To execute the standalone API samples, run:
ant -f build-api_name.xml run.all
b. To execute client-server samples, choose a server and corresponding client
and then execute the server and client separately. This example shows how to
run the Simple client-server sample:
i. To find the list of client-server samples:
ant -f build-api_name.xml -projecthelp