Sub topic 3
Choose a JDK for Your Computer
A Java Development Kit (JDK) is a set of tools for creating and running Java programs. Before you download one, you need to match it to your computer and choose a Java version.
The right download depends on three things: your operating system, your processor, and the version your work requires.
Find your operating system and processor type
An operating system is the software that runs your computer. Common operating systems are Windows, macOS, and Linux.
A processor is the main chip that carries out a computer’s instructions. Its architecture is the processor family that software is built for. Two common choices on JDK download pages are:
- x64, also called x86-64 or AMD64. This is common on computers with Intel or AMD processors.
- ARM64, also called AArch64. This is used by Apple silicon Macs and some Windows and Linux computers.
The names can be confusing. For example, AMD64 is also used for many Intel processors. Use the steps below to find what your computer needs.
Windows
Open Settings, then choose System and About. Under Device specifications, look for System type.
- If it says “64-bit operating system” and “x64-based processor,” look for a Windows x64 JDK.
- If it says “64-bit operating system” and “ARM-based processor,” look for a Windows ARM64 JDK.
If your operating system is 32-bit, do not select a 64-bit download just because the processor supports it. Check the JDK supplier’s supported systems. You may need a different download, and some suppliers may not offer one for your system.
macOS
Open the Apple menu and choose About This Mac.
- If you see an Apple chip, such as Apple M1 or M2, look for macOS ARM64 or AArch64.
- If you see an Intel processor, look for macOS x64 or x86-64.
Linux
Open a terminal and enter this command:
uname -mOn a typical Linux computer, the output tells you which architecture to look for:
| Output | JDK architecture |
|---|---|
| x86_64 | x64, x86-64, or AMD64 |
| aarch64 | ARM64 or AArch64 |
If you see a different result, check your system and the supplier’s documentation before choosing a download.
Choose a Java version
A JDK version tells you which release of Java the tools support. If a course, project, or workplace asks for a particular version, choose that version first.
If you have no version requirement, an LTS release is a useful choice. LTS means “long-term support.” Suppliers offer updates for an LTS release for longer than for some other releases. The length and terms of support depend on the supplier.
For example, Java 25 is an LTS release offered by several suppliers. You can choose a JDK 25 download if your computer meets its system requirements.
Choose a supplier and download type
A JDK distribution is a packaged JDK supplied by an organization. Eclipse Temurin is one example. Other suppliers include Amazon and Oracle.
When comparing distributions, check their supported operating systems, update policy, and license. A license states the terms for using the software. If you need the JDK for work, check whether your organization has a preferred supplier.
On the download page, look for JDK rather than JRE. A JRE is a Java Runtime Environment: it runs Java programs, but it does not include the compiler you need to create them.
You may also see different file types. For example, a Windows download may be offered as an MSI installer or a ZIP archive. An installer is a file that guides you through setup. An archive is a file that holds other files. For a first installation, an installer is often the simpler choice.
Worked example
Suppose your computer has these details:
- Operating system: 64-bit Windows
- Processor: x64-based
- Required Java version: none
You decide to use Eclipse Temurin JDK 25. On the official releases page, https://adoptium.net/temurin/releases/, you would look for:
- Version 25.
- Windows as the operating system.
- x64 as the architecture.
- JDK as the package type.
- An MSI installer, if one is available.
Before downloading, check that the supplier supports your Windows version. If any detail differs on your computer, use your own system details instead of copying this example.
Exercise
Your Mac has an Apple M2 chip, and your course requires JDK 21. Which version and architecture should you look for?
Show answer
Look for JDK 21 for macOS ARM64, also called AArch64. Check that the supplier supports your macOS version.
Exercise
A download page offers both a JDK and a JRE. Which should you choose to create and run Java programs?
Show answer
Choose the JDK. It includes the compiler as well as tools for running programs.