We’re sorry. We could not find a match for your search.

We suggest you try the following to help find what you’re looking for:

  • Check the spelling of your keyword search.
  • Use synonyms for the keyword you typed, for example, try "application" instead of "software."
  • Start a new search.
Cloud Account Sign in to Cloud
Oracle Account

JDK and GraalVM Script Friendly URLs

Latest version URL

The latest versions of Oracle JDK, available under the Oracle No-Fee Terms and Conditions License, and of Oracle GraalVM, available under the GraalVM Free Terms and Conditions, can be downloaded from a command line, or automatically in scripts and dockerfiles by using download URLs which will deliver the then-current update release.

For example, to retrieve the current JDK 21 update release for Linux x64 as a compressed (tar.gz) archive, you can use the wget command:


wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz 

GraalVM releases are also available using a similar URL with graalvm instead of java in the path and added to the filename.

For example, to get the current version of GraalVM for JDK 21, for Linux x64 as a compressed (tar.gz) archive, use:


wget https://download.oracle.com/graalvm/21/latest/graalvm-jdk-21_linux-x64_bin.tar.gz 
The commands above would also work with curl:

curl https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz
and

curl https://download.oracle.com/graalvm/21/latest/graalvm-jdk-21_linux-x64_bin.tar.gz
The checksum for each download can be found by adding .sha256 to the download URL:

https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz.sha256
and

https://download.oracle.com/graalvm/21/latest/graalvm-jdk-21_linux-x64_bin.tar.gz.sha256

These URLs will deliver the current versions of JDK 21 and of GraalVM for JDK 21 with their respective checksums. When 21.0.1 is "current", those URLs deliver 21.0.1. After the release of 21.0.2 in January of 2024 the above URLs will deliver 21.0.2 and so on.

URLs for all JDK versions available under the Oracle No-Fee Terms and Conditions License and for GraalVM versions released under the GraalVM Free Terms and Conditions are supported.

There are several OS, architecture, and packaging options available. The following table lists them as they are spelled in the permanent URLs:

Operating Systems Architecture JDK Packaging Options GraalVM Packaging Options
linux aarch64 rpm, tar.gz tar.gz
x64 deb, rpm, tar.gz tar.gz
macos aarch64 dmg, tar.gz tar.gz
x64 dmg, tar.gz tar.gz
windows x64 exe, msi, zip zip

For a complete list of scriptable JDK URLs visit https://www.oracle.com/javadownload


Archive URLs

If rather than the latest update of a release you want to download a particular version, there are corresponding archive URLs that will start working on the day on which that version is released. The archive URLs use the full version number on the filename and have the word `archive` instead of `latest` in the path.

For example:

To download the GA version of JDK 21 you can use:

https://download.oracle.com/java/21/archive/jdk-21_linux-x64_bin.tar.gz

for JDK 17.0.7 version use:

https://download.oracle.com/java/17/archive/jdk-17.0.7_linux-x64_bin.tar.gz

for GraalVM for JDK 21 version use:

https://download.oracle.com/graalvm/21/archive/graalvm-jdk-21_linux-x64_bin.tar.gz

for GraalVM for JDK 17.0.7 version use:

https://download.oracle.com/graalvm/17/archive/graalvm-jdk-17.0.7_linux-x64_bin.tar.gz

for JDK 21.0.1 version use:

https://download.oracle.com/java/21/archive/jdk-21.0.1_linux-x64_bin.tar.gz

The archive releases also have corresponding archive URLs for the checksum.

For example, to retrieve the checksum for jdk-17.0.7_linux-x64_bin.tar.gz visit:

https://download.oracle.com/java/17/archive/jdk-17.0.7_linux-x64_bin.tar.gz.sha256

For example, to retrieve the checksum for graalvm-jdk-17.0.7_linux-x64_bin.tar.gz visit:

https://download.oracle.com/graalvm/17/archive/graalvm-jdk-17.0.7_linux-x64_bin.tar.gz.sha256


Using the script-friendly URLs in Dockerfiles

Here is a fraction of a sample docker file that will download the current JDK 17 version as a tar.gz, check the download against it’s checksum, and extract it to /usr/java/jdk-17



ENV JAVA_PKG=https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz \
	JAVA_HOME=/usr/java/jdk-17

RUN set -eux; \
	JAVA_SHA256=$(curl "$JAVA_PKG".sha256) ; \
	curl --output /tmp/jdk.tgz"$JAVA_PKG" && \
	echo "$JAVA_SHA256 */tmp/jdk.tgz" | sha256sum -c; \
	mkdir -p "$JAVA_HOME"; \
	tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1 

The complete Dockerfile is available in Oracle’s docker image repository in GitHub. The container image created with this Dockerfile is available in the Oracle Container Registry.


Availability of the URLs

The JDK 21 and GraalVM for JDK 21 latest URLs will work until September 2026, a year after the release of the next LTS, under the Oracle No-Fee Terms and Conditions License and an up-to-date version of GraalVM for JDK 21 is available under the GraalVM Free Terms and Conditions. After September 2026, three years after GA and one year after the next JDK LTS release is available, the latest JDK 21 and GraalVM for JDK 21 URLs will cease to work.

The JDK 17 and GraalVM for JDK 17 latest URLs will work for as long as an up-to-date version of JDK 17 is available under the Oracle No-Fee Terms and Conditions License and an up-to-date version of GraalVM for JDK 17 is available under the GraalVM Free Terms and Conditions. After September 2024, three years after GA and one year after the next JDK LTS release is available, the latest JDK 17 and GraalVM for JDK 17 URLs will cease to work. Java SE Subscribers and customers using Oracle Cloud Infrastructure will be able to continue getting updates for JDK 17 and GraalVM for JDK 17; other users should migrate to the next LTS.

The archive URLs for each release will continue to work for at least a year after the corresponding latest URLs stop being available.