Skip to main content

java-oracle

Download and install Oracle JDK

load.sh java-oracle

Usage​

load.sh java-oracle -- [options]

Downloads and installs Oracle JDK binary distribution for x86_64 and aarch64 Linux.

Options:
-h, --help Show this help and exit
--version <version> Java major version to install (default: 21)
LTS versions: 17, 21, 25 (publicly available)
Non-LTS versions require confirmation (or --yes)
Note: Oracle only provides public downloads for recent LTS versions
--yes, -y Skip confirmation for non-LTS versions
--force Re-download even if already installed
--dry-run Print actions without executing them
--manifest [--version <version>]
Print installation manifest and exit
Without --version: removes all versions (default)
With --version: removes only specific version

Examples:
load.sh java-oracle
load.sh java-oracle -- --version 25
load.sh java-oracle -- --version 24 --yes
load.sh java-oracle -- --dry-run
load.sh java-oracle -- --manifest --version 21

Note:
By downloading and using Oracle JDK, you agree to the Oracle Technology Network License Agreement.
For production use, please review Oracle's licensing terms.

Script page · Source