Script Friendly Download
Java Download offers script friendly download commands that can be distributed to non-OCI users in the enterprise who can use them in scripts to download Oracle Java runtimes without having to accept licenses or verify entitlements.
The script friendly pop-up screen provides the following information:
- Purpose: details the purpose of downloading and using script friendly commands.
- Command availability: provides information about the JDK license type and availability of the scripts.
- Specific/Latest release requirements: lists the specific release requirements for current release and latest release requirements for archived releases.
- Operating system and architecture: the chosen operating system and architecture for downloading the scripts.
- File size: the size of the package.
- Download command: the script friendly command that you can Copy. See Command types. You need a valid token to use these commands. The selected token will be embedded into the download command.
- Download checksum command: the checksum command that you can Copy.
- JDK docker file: select Download JDK docker file, if available. If you have selected JDK 8, then Server JRE docker file is also available for download. See JDK Docker File.
There are two types of script friendly commands:
- Latest: download commands in
/java/<version>/latest/<fileNameWithExtn>
format always gives you the latest release in the selected version when used in script or docker files. These are available for current releases.Here is the format of how the latest download command may be used:curl -H "token:<$token>" -L -O https://java.oraclecloud.com/java/<version>/latest/<fileNameWithExtn>
Example: If you need to retrieve the latest version of JDK 17 using scripts, without having to update the scripts:- Include the latest download command associated with the required binary, for instance
/java/17/latest/jdk-17_windows-x64_bin.zip
in your script. - Run this command to always get the latest version of JDK 17. For instance, if you run this command in Nov 2023, you will get JDK version 17.0.9 and in Feb 2024, you will get JDK version 17.0.10.
- Latest command valid till JDK 17 reaches EOSL or if the token expires (whichever is earlier)
- Checksum command is also available that you can copy and use
- Include the latest download command associated with the required binary, for instance
- Archive: download commands in
/java/<version>/archive/<fileNameWithExtn>
format always gives you the specific release of a version. These are available for archive releases.Here is the format of how the archive download command may be used:curl -H "token:<$token>" -L -O https://java.oraclecloud.com/java/<version>/archive/<fileNameWithExtn>
Example: If you need to retrieve a specific JDK 17 version, say 17.0.9 using scripts, without having to update the scripts:- Include the archive download command associated with the required binary, for instance
/java/17/archive/jdk-17.0.9_windows-x64_bin.zip
in your script. - Run this command to always get JDK 17.0.9.
- Archive command is valid until the binary is available in Java Download (2 years after the release date) or if the token expires (whichever is earlier)
- Checksum command is also available that you can copy and use
- Include the archive download command associated with the required binary, for instance
Tokens
Tokens are associated with each download command and are generated for each Java version by, if applicable, accepting the license terms so that it can be distributed to non-OCI users in the enterprise. As the token is already associated with a Java version and license acceptance, any user can use them to download Java without additional license acceptance or entitlement checks. This makes it suitable for scripts and docker files, similar to JDK script friendly URLs.
For each script friendly download, relevant active token data is provided, such as :
- Token name: name of the token associated with the JDK release.
- Generated by: the ID of the user who generated the token.
- Validity: the duration for which the token remains active.
Select the required token to be used in script friendly download commands. If an active token is not available, then you can create a token using Generate New Token button.
The script friendly download command is valid only if:
- A token is part of the download command
- The token is associated with the main version of the release
- The token is associated with the license type of the release
- The token is active, and not expired or revoked
Token is optional for downloading Java releases under NFTC license. Downloads without a valid token won't appear in Reporting.
In the Items per page field, choose 10, 20, 50, or 100 items to display. Select the header of a column to sort the list based on the title of the column.