How to jdk download

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 4, 2026

Quick Answer: To download the JDK (Java Development Kit), visit the official Oracle website or use an alternative OpenJDK provider like Adoptium. You'll need to select the correct operating system and version, then download the installer and follow the on-screen instructions to complete the installation.

Key Facts

What is the JDK?

The Java Development Kit (JDK) is a software development kit used to develop applications for the Java programming language. It contains the Java Runtime Environment (JRE), along with tools necessary for development, such as the compiler, debugger, and other utilities. Essentially, if you want to write and compile Java code, you need the JDK.

Where to Download the JDK

There are several reliable sources for downloading the JDK. The most common and official source is Oracle. However, due to licensing changes, many developers opt for OpenJDK builds from alternative providers.

Oracle JDK

Oracle offers its own distribution of the JDK. Historically, this was the primary source for Java developers. While Oracle JDK is free for development and testing purposes, commercial use often requires a paid license. To download from Oracle:

  1. Navigate to the Oracle Java SE Downloads page (search for "Oracle Java SE Downloads").
  2. Select the latest version or a Long-Term Support (LTS) version. LTS versions receive updates for a longer period, making them a stable choice for many projects.
  3. Choose the operating system you are using (Windows, macOS, Linux).
  4. Download the installer package. This will typically be an executable file (.exe for Windows) or a compressed archive (.tar.gz for Linux/macOS).
  5. Run the installer and follow the on-screen prompts.

OpenJDK Distributions

OpenJDK is an open-source implementation of the Java Platform, Standard Edition. Many vendors provide pre-built OpenJDK binaries that are free to use for any purpose, including commercial deployment. Some popular OpenJDK providers include:

The download and installation process for these distributions is generally similar to Oracle JDK: select your OS and version, download the installer, and run it.

Installing the JDK

Once you have downloaded the installer:

Verifying the Installation

After installation, you can verify that the JDK is set up correctly by opening a terminal or command prompt and typing the following command:

java -version

This command should output the version of the Java runtime that is installed. To check the compiler version, use:

javac -version

If these commands return version information, your JDK has been successfully installed and configured.

Choosing the Right JDK Version

Java versions are released frequently. Oracle and other providers offer both the latest feature releases and Long-Term Support (LTS) releases. LTS releases (e.g., Java 8, 11, 17, 21) receive security updates and bug fixes for an extended period, making them ideal for production environments where stability is paramount. For learning or experimenting with new features, the latest release might be suitable.

Sources

  1. Java SE Downloads - Oraclefair-use
  2. Eclipse Temurin (Adoptium)CC0-1.0
  3. OpenJDKCC0-1.0

Missing an answer?

Suggest a question and we'll generate an answer for it.