oracle-actions / setup-java
GitHub Action to download and install Oracle's Java Development Kit builds
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing oracle-actions/setup-java in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler vieworacle-actions/setup-java This action downloads a Java Development Kit (JDK) built by Oracle and installs it using . JDKs built by Oracle are Oracle JDK and Oracle OpenJDK. Input Overview | Input Name | Default Value | Description | |-----------------------|--------------:|-----------------------------------------------------------------| | | | From where the JDK should be downloaded. | | | | Java feature release number or name of an Early-Access project. | | | | An explicit version of a Java release. | | | | Install the downloaded JDK archive file. | | | _empty_ | Control the value passed as | | | _empty_ | Custom URI of a JDK archive file to download. | Input The input specifies from where the JDK should be downloaded. It defaults to . The following values are supported: • for Oracle JDK 21 and later. This action only supports Oracle JDKs provided under the Oracle No-Fee Terms and Conditions License. • for the current OpenJDK General Availability and Early-Access builds. Early-Access builds include the mainline JDK, Generational ZGC, Project Loom and jextract, Panama, Valhalla, etc. The jdk.java.net-uri.properties file provides a set of key-value pairs mapping OpenJDK descriptions to their download links. Input The input denotes a Java feature release number ( , , ...) or a name of an Early-Access project ( , ...). It defaults to the current General-Availability Release for the Java SE platform., which is as of today. Note that websites may offer a different set of available releases. For example, only offers releases of and above; it does not offer Early-Access releases. Note also that websites may stop offering any release at any time. Please consult the website for details on which release is offered for how long. Input The input can be used to specify an explicit version of a Java release, such as . It is set by default to . ___ > [!CAUTION] > Older versions of the JDK are provided to help developers debug issues in older systems. > **They are not updated with the latest security patches and are not recommended for use in production.** ___ Input The input enables or disables the automatic JDK installation of the downloaded JDK archive file. It is enabled by default by using as its value. This action delegates to to install the downloaded JDK archive file using default settings. Pass to skip the automatic JDK installation and invoke with your custom settings. Input The input allows overriding the value passed as to the underlying action. Supported values of include: • parses the computed or given URI for a valid Java version string, ex. . • returns the of the computed or given URI as a string, ex. . • All strings supported by The default value of depends on the input documented above: • If input starts with a digit, defaults to . • If input does not start with a digit, defaults to . Input Use the input to download a JDK from the specified URI originating from a supported website. The value of inputs , , and ignored. Examples for The following examples use the JDK Script Friendly URLs to download and set up binaries that are made available under the Oracle No-Fee Terms and Conditions License. Download and install the latest version of Oracle JDK Download and install a specific version of Oracle JDK ___ > [!CAUTION] > Older versions of the JDK are provided to help developers debug issues in older systems. > **They are not updated with the latest security patches and are not recommended for use in production.** ___ Examples for The following examples download and install OpenJDK binaries that are made available under the GNU General Public License, version 2, with the Classpath Exception. Download and install an OpenJDK build of a given release > [!NOTE] > This action supports two symbolic modes for on : > - updates as early as possible to the latest-and-greatest JDK build (default) > - updates later in the release cycle, usually when an early-access JDK build went GA Download and install an Early-Access build of a named OpenJDK project Supported GitHub Actions Virtual Environments All environments with Java 21 pre-installed are supported. These include the following labels: , , and . More information Make sure to check the announcement and the FAQ on Inside Java. Status