Last Updated:

Temurin JDK 17 Download: A Comprehensive Guide

In the world of Java development, choosing a reliable and well-supported JDK (Java Development Kit) is critical for building robust, enterprise-ready applications. Eclipse Temurin, a flagship project under the Eclipse Adoptium umbrella, has emerged as one of the leading open-source JDK distributions. It is widely recognized for its enterprise-grade stability, Technology Compatibility Kit (TCK) certification, and predictable long-term support (LTS) release cadence.

Java 17, released in September 2021, is a major Long-Term Support release that remains a foundation for production workloads worldwide due to its language modernizations, security enhancements, and long-term maintenance lifecycle (supported until at least October 2027 by the Eclipse Adoptium community).

This guide provides a detailed, step-by-step walkthrough on how to download, install, verify, and configure Temurin JDK 17 across Windows, macOS, and Linux, along with best practices, troubleshooting solutions, and practical code examples.

Table of Contents#

  1. Overview of Temurin JDK 17
  2. System Requirements and Platform Support
  3. Downloading Temurin JDK 17
  4. Installing Temurin JDK 17
  5. Verifying the Installation
  6. Best Practices for Using Temurin JDK 17
  7. Common Issues and Troubleshooting
  8. Example Usage: Building a Java 17 Application
  9. Frequently Asked Questions (FAQs)
  10. References

Overview of Temurin JDK 17#

What is Eclipse Temurin?#

Eclipse Temurin is the open-source Java SE distribution produced by the Eclipse Adoptium working group (formerly AdoptOpenJDK). Key characteristics of Temurin include:

  • OpenJDK Source Code: Built directly from upstream OpenJDK source repositories.
  • TCK Compliance: Thoroughly tested with the official Java Technology Compatibility Kit (TCK) to ensure 100% specification compatibility.
  • AQAvit Quality Testing: Validated by Adoptium’s AQAvit test suite, covering functional, performance, security, and stress testing.
  • Permissive Licensing: Free for commercial and personal use under the GPLv2 with Classpath Exception (GPLv2+CE).

Why Choose Java 17 (LTS)?#

Java 17 represents an LTS milestone that introduced significant language enhancements and performance improvements, including:

  • Sealed Classes and Interfaces (JEP 409): Enable fine-grained control over inheritance hierarchies by permitting only designated subclasses.
  • Pattern Matching for switch (JEP 406): Expands switch expressions and statements to match patterns and extract components safely.
  • Strong Encapsulation of JDK Internals (JEP 403): Protects internal APIs (such as sun.misc.Unsafe) from accidental runtime access, improving security and maintainability.
  • Enhanced Pseudo-Random Number Generators (JEP 356): Provides modern interfaces and implementations for random number generation.
  • Removal of Outdated APIs: Removal of the Applet API and deprecation of the SecurityManager for future removal.

Adoptium provides community builds and security updates for Temurin 17 until at least October 2027, making it a stable target for enterprise microservices, Spring Boot 3+ applications, and cloud-native workloads.

System Requirements and Platform Support#

Before downloading and installing Temurin JDK 17, confirm your operating environment meets the minimum requirements:

ComponentSupported Environments & Specifications
Operating Systems- Windows: Windows 10, 11, Windows Server 2016+ (64-bit)
- macOS: macOS 11 (Big Sur), 12 (Monterey), 13 (Ventura), 14 (Sonoma), 15 (Sequoia)+
- Linux: Ubuntu 20.04+, Debian 11+, RHEL / Rocky / AlmaLinux 8+, Fedora 38+, Alpine 3.16+, openSUSE / SLES 15+
CPU Architecturesx64 / AMD64 (Intel/AMD), aarch64 (ARM64 / Apple Silicon), ppc64le (IBM Power), s390x (IBM Z), riscv64
Memory (RAM)Minimum 1 GB RAM (4 GB or more recommended for development with IDEs and build tools)
Disk Space~350 MB to 500 MB free space (varies slightly by OS and installation package)

Downloading Temurin JDK 17#

Follow these steps to obtain the official Temurin JDK 17 binaries:

Step 1: Navigate to the Adoptium Releases Page#

Visit the official Eclipse Adoptium release portal:
https://adoptium.net/temurin/releases/

Step 2: Choose Version and Release Type#

  • Version: Select 17 - LTS.
  • Release Type: Choose GA (General Availability) for stable, production-ready builds.

Step 3: Select OS and CPU Architecture#

  • Operating System: Select your target system (Windows, macOS, or Linux).
  • Architecture: Choose x64 for standard 64-bit Intel/AMD systems, or aarch64 for ARM-based systems (including Apple Silicon M-series chips).

Step 4: Select Package Format (JDK vs. JRE)#

Adoptium offers both full development kits and lean runtime environments:

  • JDK (Java Development Kit): Includes the compiler (javac), runtime (java), packaging utilities (jar, jlink), and diagnostic tools. Choose this for development and building applications.
  • JRE (Java Runtime Environment): Contains only the runtime engine. Suitable for deployment environments running pre-compiled .jar files where no compilation occurs.
  • Format Options:
    • Installers: .msi (Windows), .pkg (macOS), .deb / .rpm / .apk (Linux) — recommended for automated setup and path configuration.
    • Archives: .zip (Windows), .tar.gz (macOS / Linux) — ideal for portable setups, CI/CD runners, or multi-JDK environments without administrator privileges.

Step 5: Verify the Download via SHA-256 Checksum#

Adoptium publishes SHA-256 hash files and GPG signatures for every release. Verifying checksums ensures that the file was downloaded completely without corruption or tampering:

  1. On the Adoptium download page, click the SHA256 checksum link corresponding to your selected file.
  2. Calculate the SHA-256 hash of your downloaded file locally:
    • Linux / macOS:
      sha256sum OpenJDK17U-jdk_x64_linux_hotspot_*.tar.gz
    • Windows (PowerShell):
      Get-FileHash -Path ".\OpenJDK17U-jdk_x64_windows_hotspot_*.msi" -Algorithm SHA256
  3. Verify that the output hash matches the hash provided by Adoptium.

Installing Temurin JDK 17#

Windows Installation#

  1. Double-click the downloaded .msi installer file.
  2. In the Custom Setup dialog, review the available features:
    • Add to PATH: Adds Java executable binaries to your system environment variables (enabled by default).
    • Set JAVA_HOME variable: Sets the JAVA_HOME system variable automatically to the installation directory.
    • Associate .jar: Associates .jar files with Java.
    • JavaSoft (Oracle) registry keys: Updates registry entries for legacy compatibility.
  3. Click Next, then Install. When prompted by User Account Control (UAC), grant administrative permission.
  4. Click Finish to conclude installation.

Option B: Windows Package Managers#

You can also install Temurin 17 on Windows via CLI package managers:

  • winget:
    winget install EclipseAdoptium.Temurin.17.JDK
  • Chocolatey:
    choco install temurin17
  • Scoop:
    scoop bucket add java
    scoop install temurin17-jdk

Option C: Manual Zip Archive Extraction#

  1. Extract the downloaded .zip file to your chosen directory (e.g., C:\Program Files\Eclipse Adoptium\jdk-17).
  2. Set environment variables:
    • Open Windows Search, type Environment Variables, and select Edit the system environment variables.
    • Under System Variables, click New:
      • Variable name: JAVA_HOME
      • Variable value: C:\Program Files\Eclipse Adoptium\jdk-17
    • Locate the Path variable in System Variables, click Edit, click New, and add:
      %JAVA_HOME%\bin
    • Click OK to save all dialogs.

macOS Installation#

  1. Double-click the downloaded .pkg file (e.g., OpenJDK17U-jdk_aarch64_mac_hotspot_*.pkg for Apple Silicon or x64 for Intel).
  2. Follow the installer prompts, accept the license, and click Install.
  3. Temurin installs directly into macOS's standard Java virtual machine directory:
    /Library/Java/JavaVirtualMachines/temurin-17.jdk
  4. Configure your shell profile (~/.zshrc or ~/.bash_profile):
    export JAVA_HOME=$(/usr/libexec/java_home -v 17)
    export PATH=$JAVA_HOME/bin:$PATH
  5. Apply the changes:
    source ~/.zshrc

Option B: Homebrew#

Mac users can install Temurin 17 directly through Homebrew Cask:

brew install --cask temurin@17

Option C: Tar.gz Archive (Manual)#

  1. Extract the archive into the macOS JavaVirtualMachines directory:
    sudo tar -xzf OpenJDK17U-jdk_*_mac_hotspot_*.tar.gz -C /Library/Java/JavaVirtualMachines/
  2. Update your ~/.zshrc file with the path to Contents/Home.

Linux Installation#

Adoptium maintains native package repositories for major Linux distributions.

Debian / Ubuntu (apt)#

  1. Install prerequisites:
    sudo apt update
    sudo apt install -y wget apt-transport-https gpg
  2. Import the Eclipse Adoptium GPG key:
    wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
  3. Add the Adoptium APT repository:
    echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
    (Note: For Linux Mint or derivatives, substitute UBUNTU_CODENAME for VERSION_CODENAME.)
  4. Update package lists and install Temurin JDK 17:
    sudo apt update
    sudo apt install -y temurin-17-jdk

RHEL / Rocky Linux / AlmaLinux / CentOS / Fedora (dnf / yum)#

  1. Create the repository configuration file /etc/yum.repos.d/adoptium.repo:
    sudo tee /etc/yum.repos.d/adoptium.repo << 'EOF'
    [Adoptium]
    name=Adoptium
    baseurl=https://packages.adoptium.net/artifactory/rpm/${DISTRIBUTION_NAME:-$(. /etc/os-release; echo $ID)}/$releasever/$basearch
    enabled=1
    gpgcheck=1
    gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
    EOF
  2. Install Temurin JDK 17:
    sudo dnf install -y temurin-17-jdk
    (On older systems, use sudo yum install -y temurin-17-jdk.)

openSUSE / SLES (zypper)#

  1. Add the repository:
    sudo zypper ar -f https://packages.adoptium.net/artifactory/rpm/opensuse/$(. /etc/os-release; echo $VERSION_ID)/$(uname -m) adoptium
  2. Install the package:
    sudo zypper install temurin-17-jdk

Alpine Linux (apk)#

  1. Add the Adoptium RSA public key:
    sudo wget -O /etc/apk/keys/adoptium.rsa.pub https://packages.adoptium.net/artifactory/api/security/keypair/public/repositories/apk
  2. Configure the APK repository:
    echo 'https://packages.adoptium.net/artifactory/apk/alpine/main' | sudo tee -a /etc/apk/repositories
  3. Install Temurin 17:
    sudo apk add temurin-17-jdk

Manual Tarball Installation (tar.gz)#

If your distribution is not listed or you prefer a self-contained installation:

  1. Extract the tarball to /usr/lib/jvm/:
    sudo mkdir -p /usr/lib/jvm
    sudo tar -xzf OpenJDK17U-jdk_x64_linux_hotspot_*.tar.gz -C /usr/lib/jvm/
  2. Configure environment variables in /etc/profile.d/jdk17.sh or ~/.bashrc:
    export JAVA_HOME=/usr/lib/jvm/jdk-17.0.20+8
    export PATH=$JAVA_HOME/bin:$PATH
  3. Register with update-alternatives (optional):
    sudo update-alternatives --install /usr/bin/java java $JAVA_HOME/bin/java 1700
    sudo update-alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 1700

Verifying the Installation#

To ensure Temurin JDK 17 is installed properly and accessible across your system, open a new terminal or command prompt and run:

java -version
javac -version

Expected Output#

The output should clearly identify Temurin and version 17.x:

openjdk version "17.0.20" 2026-07-21
OpenJDK Runtime Environment Temurin-17.0.20+8 (build 17.0.20+8)
OpenJDK 64-Bit Server VM Temurin-17.0.20+8 (build 17.0.20+8, mixed mode, sharing)
javac 17.0.20

To verify the configured JAVA_HOME path:

  • Linux / macOS:
    echo $JAVA_HOME
  • Windows (PowerShell):
    $env:JAVA_HOME

Best Practices for Using Temurin JDK 17#

1. Stay Current with Quarterly CPU / Security Updates#

Adoptium aligns with OpenJDK’s Critical Patch Update (CPU) schedule, releasing security fixes and maintenance updates every quarter (January, April, July, and October). Configure automated notifications or package manager updates to keep your runtime secure.

2. Standardize JAVA_HOME Configuration#

Build tools like Apache Maven, Gradle, Ant, and IDEs (IntelliJ IDEA, Eclipse, VS Code) depend on JAVA_HOME. Defining JAVA_HOME at the system level prevents conflicts when multiple Java versions exist.

3. Manage Multiple JDKs with Version Managers#

If you work across multiple projects requiring different Java versions (e.g., Java 8, 11, 17, 21):

  • SDKMAN! (Linux / macOS / WSL):
    sdk install java 17.0.20-tem
    sdk default java 17.0.20-tem
  • jEnv (macOS / Linux):
    jenv add /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
    jenv global 17.0

4. Leverage Official Docker Container Images#

For containerized deployments, use the official Docker Hub images maintained by the Adoptium team:

# Build stage using JDK
FROM eclipse-temurin:17-jdk-alpine AS build
WORKDIR /app
COPY . .
RUN ./mvnw clean package -DskipTests
 
# Runtime stage using lightweight JRE
FROM eclipse-temurin:17-jre-alpine
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]

Common Issues and Troubleshooting#

1. java: command not found or 'java' is not recognized#

  • Cause: The bin directory of Temurin JDK is not present in your system's PATH environment variable.
  • Solution:
    • Windows: Add %JAVA_HOME%\bin to the Path variable in System Properties, then restart your command prompt or terminal.
    • Linux / macOS: Ensure export PATH=$JAVA_HOME/bin:$PATH is included in ~/.bashrc or ~/.zshrc, then run source ~/.bashrc (or restart the terminal session).

2. Incorrect JDK Version Displayed#

  • Cause: Another Java installation takes precedence earlier in the PATH order.
  • Solution: Prepend Temurin’s bin directory to the front of PATH:
    export PATH=$JAVA_HOME/bin:$PATH
    On Windows, move %JAVA_HOME%\bin to the top of the list in the Edit Environment Variable dialog.

3. Build Tools Fail with "JAVA_HOME is not set"#

  • Cause: Build tools (Maven/Gradle) cannot locate the JDK directory.
  • Solution: Confirm that JAVA_HOME points to the JDK root folder (the folder containing bin, include, and lib), not to the bin directory itself.

4. Permission denied During Linux or macOS Installation#

  • Cause: Insufficient filesystem privileges when extracting or installing to system directories (/usr/lib/jvm/ or /Library/Java/JavaVirtualMachines/).
  • Solution: Prefix the command with sudo (e.g., sudo tar -xzf ...).

5. Checksum Hash Mismatch#

  • Cause: Network interruption or an incomplete download.
  • Solution: Delete the incomplete archive or installer, clear your browser cache, and re-download directly from Adoptium.

Example Usage: Building a Java 17 Application#

The following complete example demonstrates Java 17’s sealed interfaces, records, and pattern matching:

Step 1: Create the Java Source File#

Create a file named Main.java:

// Sealed interface restricting implementations
sealed interface Shape permits Circle, Rectangle {
    double calculateArea();
}
 
// Immutable Record implementing the sealed interface
record Circle(double radius) implements Shape {
    @Override
    public double calculateArea() {
        return Math.PI * radius * radius;
    }
}
 
record Rectangle(double width, double height) implements Shape {
    @Override
    public double calculateArea() {
        return width * height;
    }
}
 
public class Main {
    // Method utilizing pattern matching for switch
    public static String describeShape(Shape shape) {
        return switch (shape) {
            case Circle c -> String.format("Circle with radius %.2f (Area: %.2f)", c.radius(), c.calculateArea());
            case Rectangle r -> String.format("Rectangle with dimensions %.2f x %.2f (Area: %.2f)", r.width(), r.height(), r.calculateArea());
        };
    }
 
    public static void main(String[] args) {
        Shape circle = new Circle(5.0);
        Shape rectangle = new Rectangle(4.0, 6.0);
 
        System.out.println(describeShape(circle));
        System.out.println(describeShape(rectangle));
    }
}

Step 2: Compile and Execute#

  1. Open a terminal in the folder containing Main.java.
  2. Compile the source file using javac:
    javac Main.java
  3. Run the compiled application with java:
    java Main
    (Tip: In Java 11+, you can also run single-file source code directly without manual compilation: java Main.java)

Output#

Circle with radius 5.00 (Area: 78.54)
Rectangle with dimensions 4.00 x 6.00 (Area: 24.00)

Frequently Asked Questions (FAQs)#

Is Eclipse Temurin 17 free for commercial production use?#

Yes. Eclipse Temurin is distributed under the General Public License version 2 with Classpath Exception (GPLv2+CE), permitting both personal and commercial use without licensing fees or subscription costs.

What is the difference between Eclipse Adoptium and Temurin?#

Eclipse Adoptium is the top-level Eclipse Foundation project and working group. Eclipse Temurin is the specific open-source JDK binary distribution produced and maintained by the Adoptium community.

Is Temurin JDK 17 TCK certified?#

Yes. Every General Availability release of Eclipse Temurin passes the official Technology Compatibility Kit (TCK), guaranteeing specification compatibility with Oracle Java SE 17.

Should I choose Temurin JDK 17 or Temurin JDK 21?#

Java 17 and Java 21 are both active LTS releases. If starting a new greenfield project, Java 21 is recommended for features like Virtual Threads (Project Loom) and Sequenced Collections. For existing production environments, Java 17 remains fully supported and ideal for stability.

References#