Reference: Repackage the IBM JRE for deployment to AIX endpoints

Before you begin

You can deploy supported versions of OpenJDK JRE version 8 through Comply to endpoints running AIX 7.1 TL1SP10 and later or AIX 7.2. Check the OpenJDK release site for supported service pack levels for a particular OpenJDK JRE release: AdoptOpenJDK: Latest release.

The OpenJDK JRE version 8 does not support AIX 6.1; therefore, you must use the IBM JRE on AIX 6.1 endpoints.

If needed, you can deploy IBM Java SE Version 8 (64-bit) to AIX endpoints through Comply, but you must repackage it first to a format that is compatible with Comply.

The IBM JRE is usually already installed on AIX endpoints and supported versions can be used with Comply 2.10 and earlier.

Repackage the JRE

You must complete these steps on an AIX machine.

  1. Download IBM Java SE Version 8 (64-bit): IBM: Developer Kits for Java Standard Edition on AIX.
  2. Complete the following steps from a command line on an AIX machine:
    1. Move the downloaded JRE file to the directory where you want to extract the files.
    2. Change directory to the directory where you moved the file.
    3. Run the following commands, which use these variables:
      • <downloaded file name>: the file that you downloaded from the IBM website. For example, Java8_64.jre.
      • <extracted file name>: the extracted file. For example, Java8_64.jre.
      • <extracted file path>: the directory to which the file was extracted. For example, Java8_64.
      • <file name for resulting file>: Name that you specify for the resulting file. This name must reflect the exact JRE version. For example, Java8_64.jre.

      gzip -dc <downloaded file name> | tar -xof -
      restore -qxvdf <extracted file name> .
      cp -R usr/lpp/<extracted file name>/inst_root/etc/<extracted file path>/jre/lib/* usr/<extracted file path>/jre/lib/
      cd usr/<extracted file path>/
      tar -cvf /tmp/<file name for resulting file>.tar jre
      cd /tmp
      //If you downloaded the original file to /tmp, you must delete that file using the following command
      // before you can create the resulting .tar file since the two files have the same name.
      //If you downloaded the file to a location other than /tmp, skip to the last command
      rm -rf <downloaded file name>
      gzip <file name for resulting file>.tar

      The subsequent example shows the commands with actual filenames and paths.

      You must name the file so that it reflects the exact IBM JRE version. For example, Java8_64.jre. In most cases, the file name will match the file name of the original JRE that you downloaded.

      For AIX Open JDK JRE, the format of the file name must include the following regex jre_ppc64_aix.*_(8u\d+).*\.tar\.gz


The following example shows the commands to generate the file that can be deployed through Comply.

This example uses these inputs:

  • The version of the downloaded JRE is
  • The file name for the downloaded JRE is Java8_64.jre.
  • The directory for file extraction is /tmp/jre_extract
  • The resulting JRE file is Java8_64.jre. (the same as the original downloaded JRE file)

cd /tmp/jre_extract
gzip -dc Java8_64.jre. | tar -xof -
restore -qxvdf Java8_64.jre .
cp -R usr/lpp/Java8_64.jre/inst_root/etc/java8_64/jre/lib/* usr/java8_64/jre/lib/
cd usr/java8_64/
tar -cvf /tmp/Java8_64.jre. jre
cd /tmp
gzip Java8_64.jre.

These commands produce a file, Java8_64.jre., that can be deployed to AIX endpoints through Comply.