Creating a JAR for the Sample Application

Create JAR file for the Sample Application.

This section describes the typical steps required to create a JAR file for the Sample Application.

Ensure that Maven 3.6 or later and Open JDK 1.8 are installed on the machine on which you are creating the JAR file.

To create a JAR file for the Sample Application:

  1. Extract the installation package.

    For more information about extract the installation package, refer to the section Extracting the Linux Installation Package.

  2. Run the following command to extract the files from the ApplicationProtector-SAMPLE-APP_SRC_<Build_version>.tgz file to a directory.

    tar -xvf ApplicationProtector-SAMPLE-APP\_SRC\_&lt;Build\_version&gt;.tgz -C <dir>

  3. Switch to the directory where you have extracted the ApplicationProtector-SAMPLE-APP_SRC_<Build_version>.tgz package.

  4. Execute the following command in the directory.

    mvn clean install

    The apjava-springboot-0.1.0.jar file appears in the ./target directory.

    You need to copy the apjava-springboot-0.1.0.jar file to the /opt/protegrity directory in step 7 of the section Creating a Linux AMI for the Sample Application.


Last modified : February 25, 2026