How to Install Java Packages
Posted by Aly Essa, Last modified by Aly Essa on 01 May 2020 03:56 PM

Overview

The following instructions are provided as a guide to installing Java onto a system for use with FileCatalyst the Java API, SDK and CLI which do not have an embedded Java Runtime Environment and require one to run.

On Windows, Linux and OSX, many FileCatalyst v3.8 products (HotFolder, Server, TransferAgent and Central) do not need Java installed separately as a JRE (Amazon Corretto Java 8) is already pre-packaged in these applications.

Implementation notes: 

Environment

FileCatalyst Direct Suite v3.8

FileCatalyst Server

FileCatalyst HotFolder

FileCatalyst Central

FileCatalyst API/SDK

FileCatalyst Command Line (CLI)


Operating Systems:

Windows, MacOSX and Linux

Resolution

To access our Download Portal, please log in to your Support Portal Account and select the Get Download Credentials widget. If you do not have access to the Get Download Credentials widget, submit a ticket to Support to enable this feature.

Windows:

  1. Download Windows x64 Java 8u242
  2. Unzip Java bundle, place the tar bundle under C:\Program Files\Java\ (administrative privileges will be required)
  3. Open a command prompt and navigate to C:\Program Files\Java\bin\
  4. Test the Java version:

    C:\Program Files\Java\bin>.\java -version
    openjdk version "1.8.0_242"
    OpenJDK Runtime Environment Corretto-8.242.08.1 (build 1.8.0_242-b08)
    OpenJDK 64-Bit Server VM Corretto-8.242.08.1 (build 25.242-b08, mixed mode)

  5. Additional configuration may be required to:
    1. Modify the application script to use this specific Java version.
    2. Have the system path pointing to this location for the system to pick it up.

Linux:

  1. Download Linux x64 Java 8u242 JRE
  2. Execute the following commands from a terminal window:

    myuser@myhostname:~$ sudo mkdir /opt/java
    myuser@myhostname:~$ sudo cp ./amazon-corretto-8.242.08.1-linux-x64.tar.gz /opt/java/
    myuser@myhostname:~$ cd /opt/java/
    myuser@myhostname:/opt/java$ sudo tar -xvf amazon-corretto-8.242.08.1-linux-x64.tar.gz
    myuser@myhostname:/opt/java$ sudo chown -R root:root /opt/java/amazon-corretto-8.242.08.1-linux-x64


  3. Test to ensure Java is installed:

    myuser@myhostname:/opt/java$ /opt/java/amazon-corretto-8.242.08.1-linux-x64/bin/java -version
    openjdk version "1.8.0_242"
    OpenJDK Runtime Environment Corretto-8.242.08.1 (build 1.8.0_242-b08)
    OpenJDK 64-Bit Server VM Corretto-8.242.08.1 (build 25.242-b08, mixed mode)

  4. Additional configuration may be required to:
    1. Modify the application script to use this specific Java version.
    2. Have the system path pointing to this location for the system to pick it up.

MacOSX:

  1. Download OSX x64 Java 8u242
  2. Execute the following commands from a terminal window (from the directory where the package has been placed):

    sudo tar -xvf ./amazon-corretto-8.242.08.1-1-macosx-x64.tar.gz
    sudo chown -R root:wheel amazon-corretto-8.242.08.1-1-macosx-x64/
    sudo mv ./amazon-corretto-8.242.08.1-1-macosx-x64 /Library/Java/JavaVirtualMachines/
    cd /Library/Java/JavaVirtualMachines/


  3. Test the Java version:

    /Library/Java/JavaVirtualMachines/amazon-corretto-8.242.08.1-1-macosx-x64/Contents/Home/bin/java -version
    openjdk version "1.8.0_242"
    OpenJDK Runtime Environment Corretto-8.242.08.1 (build 1.8.0_242-b08)
    OpenJDK 64-Bit Server VM Corretto-8.242.08.1 (build 25.242-b08, mixed mode)

  4. Additional configuration may be required to:
    1. Modify the application script to use this specific Java version.
    2. Have the system path pointing to this location for the system to pick it up.