Monday, March 11, 2024

Downloading Java with Java Management Service: Script-friendly Oracle Java downloads now available through OCI

Downloading Java with Java Management Service: Script-friendly Oracle Java downloads now available through OCI

Oracle is excited to announce the launch of scriptable Java downloads through the Java Management Service (JMS) via the Oracle Cloud Infrastructure (OCI) service. This new capability is tailored to meet the needs of Java developers, administrators, and software providers.

Learn how JMS Java Downloads let you download up-to-date Java versions into your automated build and deployment system with script-friendly downloads, token-based authentication, and comprehensive reporting – on OCI, third-party cloud, and on premises including desktop environments.

Script-Friendly Java downloads, for all releases, including those past end-of-permissive-licensing (e.g. JDK 8 and 11)


oracle.com/javadownload allows for no-click script-friendly downloads of JDK versions under the No Fee Terms and Conditions (NFTC) which currently includes Oracle JDK 17 and 21. JMS Java Download provides more flexibility to customers by offering script-friendly downloads for all supported JDK versions, including versions that, being under the Oracle Technology Network (OTN) License, require license acceptance, such as updates for Oracle JDK 8 and JDK 11.

Token-Based Authentication for Hassle-Free Downloads

License-acceptance tokens are the key to enabling automatic downloads for all Java versions via scripts and in dockerfiles. Customers can generate tokens that allow Oracle’s download servers to validate that the applicable license terms for each JDK version have already been accepted. By using these user-generated tokens, administrators and developers can download Oracle Java binaries without having to log in and re-accept license terms for each download. Each token is linked to an individual OCI tenancy and to a Java version. You can create multiple tokens for each Oracle Java version.

Download JDKs from wherever you need it

Oracle Cloud Infrastructure is available from 46 public cloud regions in 23 countries. JMS Java Download service allows you to create tokens and download Java from any of those regions. This allows developers and system administrators to choose the location closest to the systems downloading the JDK and to comply with requirements that mandate downloads from particular locations.

The domain for the download command used in your scripts and dockerfiles will clearly indicate the region from which Java will be downloaded.

Users of OCI dedicated regions can reach out to their Oracle Representatives to set up JMS Java Download Services in their dedicated servers.

Finding the right update version

Oracle releases quarterly updates to all supported Java versions with critical security and functional fixes as well as performance upgrades. We strongly recommend that users update their Java runtimes to an up-to-date version as soon as possible.

Latest download commands

To allow for scripts and dockerfiles to remain unchanged, yet get the latest JDK version, we offer the “latest” download commands.

Download locations with the /java/latest/ provide you with the latest release in the selected version. Here is how to use the download command:

Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
curl -H "token: <token value>" -L -O <domain>/java/<version>/latest/<fileNameWithExtn>
curl -H "token: <token value>" -L -O <domain>/java/<version>/latest/<fileNameWithExtn>

For example, if you need to retrieve the latest version of JDK 17 using scripts, without having to update the scripts, use the latest download command for JDK 17 (/java/17/latest/jdk-17_windows-x64_bin.zip) in your script. This command ensures you 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 after the Jan 2024 critical patch update, you will get JDK 17.0.10. The filename in the latest download command specifies only the Feature/Major version (17, instead of 17.0.9 or 17.0.10)

Archive download commands

It is also possible to request a specific JDK version for download. For this, we offer the “Archive” download commands.

Download locations with /java/archive/ provide a specific release. Here's how the archive download command can be used:

Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
curl -H "token: <token value>" -L -O <domain>/java/<version>/archive/<fileNameWithExtn>
curl -H "token: <token value>" -L -O <domain>/java/<version>/archive/<fileNameWithExtn>

For example, if you need to retrieve JDK 17.0.9, regardless of whether is the latest, use the archive download command associated with the required binary (e.g., /java/17/archive/jdk-17.0.9_windows-x64_bin.zip) in your script. The filenames in the archive download commands specify the exact JDK version. This command ensures you always get JDK 17.0.9.

Availability of the download commands

It is worth noting that the “latest” download commands will work only for as long as there is an up-to-date update for that JDK available. The archive download commands will work for at least two years after the release of that update version.

The maximum value for token expiration is either two years from the EOSL date of the associated JDK version or, in the case of newer LTS releases, the time when the JDK version is expected to change to a different license agreement. On approaching the change of license terms for the newer LTS JDK versions, JMS will provide provisions to accept the new terms, enabling you to extend the token expiration date to ensure your scripts continue running. You will need to accept the new terms before downloading under the new license agreement.

Comprehensive Reporting for Informed Decision-Making


Java Download provides download reports to help you understand download trends across your organization. These reports are available for download directly from OCI, making it easy for you to analyze how many times your systems have downloaded each version.

The reports include information about:

◉ The number of downloads per main Oracle Java version.
◉ The number of downloads for each Oracle Java release under each main Oracle Java version.
◉ The number of downloads per platform, and architecture (e.g. Linux, Windows, or macOS, x86_64 or aarch64).
◉ The time when each download was initiated.

Understanding Java download trends and patterns allows you to make better-informed decisions.

Getting Started: Create an Account on Oracle Cloud Infrastructure (OCI)


To benefit from the full capabilities of JMS Java Download, you'll need an Oracle Cloud Infrastructure (OCI) account. If you don’t already have one, you can create a free account, which includes a free time-limited promotional trial. This trial provides you with $300 of cloud credits that are valid for up to 30 days. You can spend these credits on any eligible Oracle Cloud Infrastructure service.

Here's how to begin your journey:

1. Visit cloud.oracle.com/free to create your free OCI account.
2. To access Java Download in the Oracle Cloud Console, open the navigation menu, click Observability & Management, and then Java Download under Java Management.

With your OCI account, you can create tokens, generate script-friendly download commands, and leverage the comprehensive features of Java Download to streamline your Java download experience. The free tier account is an excellent starting point to explore Java Download and its myriad features. By following these steps, you'll be well on your way to maximizing your Java development and management capabilities with OCI's Java Download.

Source: oracle.com

Related Posts

0 comments:

Post a Comment