Archive Installation

Table of Contents

Linux

  1. Make sure you have downloaded the latest Linux binary to a directory that will not move or be deleted, and use Terminal to cd into it.

  2. Optional: use these checksum instructions to ensure the authenticity of your binary:

    # The command must in the same directory as the downloaded binary file
    wget -O- -q -T 1 -t 1 <url_to_checksum_file> | sha256sum -c
  3. Extract the .tar.gz. You can use the following command:

    tar xzf <openjdk_binary>.tar.gz
  4. Add this version of Java to your PATH

    export PATH=$PWD/<extracted_directory>/bin:$PATH
  5. Check that Java has installed correctly:

    java -version

macOS

  1. Make sure you have downloaded the latest macOS binary to a directory that will not move or be deleted, and use Terminal to cd into it.

  2. Optional: use these checksum instructions to ensure the authenticity of your binary:

    # The command must in the same directory as the downloaded binary file
    wget -O- -q -T 1 -t 1 <url_to_checksum_file> | sha256sum -c
  3. Extract the .tar.gz. You can use the following command:

    tar xzf <openjdk_binary>.tar.gz
  4. Add this version of Java to your PATH

    export PATH=$PWD/<extracted_directory>/Contents/Home/bin:$PATH
  5. Check that Java has installed correctly:

    java -version

Windows

  1. Make sure you have downloaded the latest Windows binary to a directory that will not move or be deleted, and use Command Prompt to cd into it.

  2. Optional: use these checksum instructions to ensure the authenticity of your binary:

    certutil -hashfile <downloaded_file>.zip SHA256
  3. Extract the .zip. You can use the following command:

    Expand-Archive -Path .\<downloaded_file>.zip -DestinationPath .
  4. Add this version of Java to your PATH:

    set PATH=%cd%\<extracted_directory>\bin;%PATH%
  5. Check that Java has installed correctly:

    java -version

AIX

  1. Make sure you have downloaded the latest AIX binary to a directory that will not move or be deleted, and use Terminal to cd into it.

  2. Optional: use these checksum instructions to ensure the authenticity of your binary:

    # The command must in the same directory as the downloaded binary file
    wget -O- -q -T 1 -t 1 <url_to_checksum_file> | sha256sum -c
  3. Extract the .tar.gz. You can use the following command:

    gunzip -c <openjdk_binary>.tar.gz | tar xf -
  4. Add this version of Java to your PATH

    export PATH=$PWD/<extracted_directory>/bin:$PATH
  5. Check that Java has installed correctly:

    java -version

Solaris

  1. Make sure you have downloaded the latest Solaris binary to a directory that will not move or be deleted, and use Terminal to cd into it.

  2. Optional: use these checksum instructions to ensure the authenticity of your binary:

    # The command must in the same directory as the downloaded binary file
    wget -O- -q -T 1 -t 1 <url_to_checksum_file> | sha256sum -c
  3. Extract the .tar.gz. You can use the following command:

    gunzip -c <openjdk_binary>.tar.gz | tar xf -
  4. Add this version of Java to your PATH

    export PATH=$PWD/<extracted_directory>/bin:$PATH
  5. Check that Java has installed correctly:

    java -version

    Contributors
  • gdams
Help us make these docs great!
All Adoptium docs are open source. See something that's wrong or unclear?
Edit this page