Install Guide
28 Source Installation for Android
RSA BSAFE Cert-J 6.2.4 Installation Guide
Create the Toolkit Jar Files for Android
To create the Toolkit Jar files:
1. In a command prompt, navigate to the <root>/certj-src/ directory.
2. Compile all of the toolkit classes using the following command:
ant build
An error-free execution of the build scripts indicates successful compilation of the jar
files. The
jar files are located in <root>/certj-src/gen/dist.
Build and Run the System Tests
Gradle scripts to build and run the system test application are available at
<root>/certj-src/android/BsafeAndroid.
The system test application can be built and run from the command line, or built from
Android Studio. Instructions are provided to:
• Build and run the system tests from the Command Line
• Build the system tests from Android Studio.
Before you Begin:
• Ensure that your execution path will allow the gradle command to be executed.
• Attach the required Android devices.
Build and run the system tests from the Command Line
To build and run the system test application from the Command Line:
1. In the development environment, navigate to the Android test directory:
cd <root>/certj-src/android/BsafeAndroid
2. Create the Gradle wrapper:
gradle wrapper --gradle-version=version
--gradle-distribution-url=url
Where:
– version is the installed version of Gradle.
– url is optional, provided where Gradle is already downloaded, in the format
file://full_path/gradle-distribution-zipfile.
If not specified, the wrapper task downloads a new Gradle distribution.