How to Download Java for Minecraft
Learn how to download Java for Minecraft on Windows, macOS, and Linux, pick the right version, and fix common errors for mods and launchers.
Why Minecraft Uses Java
Minecraft: Java Edition runs on Java. The game uses Java to load its code, worlds, and mod files.
Most official launchers now include a private Java runtime. This means vanilla players often need no separate Java download.
Mods, mod loaders, servers, and custom launchers may need Java installed on your system. So, do I need to download Java for Minecraft? You may not for the official launcher. You likely do for many mod tools.
Java also lets you launch some older game versions outside the official launcher. The needed Java release depends on the game version and mod loader.
- Modern Minecraft versions often use Java 17 or Java 21.
- Older versions may work best with Java 8.
- Check your mod loader guide before choosing a release.
Pick the Right Java Version

OpenJDK is the best starting point for Minecraft. It is the open-source Java family used by many launchers and tools.
Temurin is a popular OpenJDK build from the Eclipse Adoptium project. You can find its releases on Eclipse Temurin's release page.
Oracle Java can run Minecraft, but its license terms can vary by use and release. OpenJDK avoids many license concerns for home gaming and modding.
Choose a long-term support release when possible. Java 17 suits many recent mod packs. Java 21 suits newer packs that ask for it.
Match Java to your CPU
You must also choose the right CPU architecture. Most new computers use 64-bit x86 processors.
Windows calls this x64. macOS may use x64 for Intel chips or ARM64 for Apple silicon chips.
- Windows: open Settings, then System, then About. Check System type.
- macOS: open the Apple menu and choose About This Mac. Look for Intel or Apple chip.
- Linux: open Terminal and run uname -m.
The Linux result x86_64 means 64-bit Intel or AMD. The result aarch64 means 64-bit ARM.
Check Java Before You Download It

Check your current Java setup first. You may already have a working version from a launcher or mod pack.
Open a terminal or command prompt. Type java -version, then press Enter.
The result shows the installed release and its build. A line starting with “17” means Java 17 is active.
Windows users can open Command Prompt from the Start menu. macOS and Linux users can open the Terminal app.
- Run java -version.
- Write down the major version number.
- Check the mod loader's required Java release.
- Install a newer release only when the current one does not match.
If the command says Java is not recognized, Java is missing from your path. You can still use a launcher with its own runtime.
Download Java for Minecraft on Windows

These steps explain how to download Java for Minecraft on Windows. They use an OpenJDK build rather than Oracle Java.
- Open the Eclipse Temurin release page in your browser.
- Pick Java 17 or Java 21 based on your mod loader.
- Choose Windows as the operating system.
- Choose x64 for most modern Windows computers.
- Download the MSI installer for a normal desktop setup.
- Run the installer and keep the default feature choices.
- Allow the installer to add Java to your path.
- Restart Command Prompt, then run java -version again.
Use the ARM64 download only on Windows devices with ARM chips. The wrong build may fail to start or run poorly.
For vanilla play, open the official launcher after installation. The launcher may keep using its own Java runtime.
Install Java for Minecraft on macOS

The process is similar on macOS, but the chip type matters more. Apple silicon needs an ARM64 build.
- Check About This Mac for Intel or Apple chip.
- Open the Temurin release page.
- Select macOS and the matching architecture.
- Download the PKG installer.
- Open the file and follow the setup screens.
- Close and reopen Terminal after setup ends.
- Run java -version to confirm the install.
Intel Macs need x64 Java. M-series Macs usually work best with ARM64 Java.
Some older mod tools expect Intel Java. Rosetta can help with older apps, but check the tool's own guide first.
Install Java on Linux with a Package Manager
Linux users should use their distribution's package manager when possible. It handles updates, paths, and needed support files.
On Ubuntu or Debian, open Terminal and run sudo apt update. Then install a release with sudo apt install openjdk-17-jre.
For Java 21, replace 17 with 21 when your distribution offers that package. The JRE package is enough for running Minecraft.
Fedora users can run sudo dnf install java-17-openjdk. Arch users can use sudo pacman -S jre17-openjdk.
- Ubuntu or Debian: use apt.
- Fedora: use dnf.
- Arch: use pacman.
Run java -version after setup. If several versions exist, use your system's Java selector to choose the right one.
Fix Common Java Installation Problems
Compatibility problems are common when a mod pack expects another Java release. A pack built for Java 8 may not run on Java 21.
Read the error message and the pack guide together. Look for phrases such as “unsupported class version” or “requires Java 17.”
Install the named release, then set that Java path in your launcher. Do not remove the old release until other games stop using it.
Path and version errors
A “java not found” message usually means the system path lacks Java. Reopen your terminal after installation, then test again.
On Windows, reinstall the JDK or JRE with the path option enabled. You can also point the launcher straight to the java executable.
An old Java version can cause startup crashes or mod errors. Update Java, restart the launcher, and test the pack again.
Memory and launcher conflicts
Java errors do not always mean Java caused the problem. A mod pack may also need more memory or a clean loader install.
Give the pack enough RAM, but leave memory for Windows, macOS, or Linux. A system with 8 GB RAM should not give Minecraft all 8 GB.
If the official launcher works but a custom launcher fails, check its Java setting. It may point to a deleted or incompatible file.
For most players, the safest path is simple. Use the official launcher for vanilla play, and use matching OpenJDK versions for mods.
Step-by-step
- 01 Check your current Java version
Open Command Prompt or Terminal and run java -version. Note the major release shown in the result.
- 02 Check your CPU architecture
Find your system type in Windows or About This Mac. On Linux, run uname -m in Terminal.
- 03 Choose an OpenJDK release
Pick Java 8, 17, or 21 based on your Minecraft version and mod loader. Select x64 or ARM64 to match your computer.
- 04 Download the installer
Open the Eclipse Temurin release page and download the Windows MSI, macOS PKG, or Linux package.
- 05 Install Java
Run the installer on Windows or macOS. Linux users should install OpenJDK through apt, dnf, or pacman.
- 06 Test the installation
Reopen your command window and run java -version. Then select the new Java path in your launcher if needed.
Frequently asked questions
- Do I need to download Java for Minecraft?
- You often do not need it for vanilla play through the official launcher. The launcher usually includes its own Java runtime.
- What Java version does Minecraft need for mods?
- Many newer mod packs need Java 17 or Java 21. Older packs may need Java 8, so check the pack or loader guide.
- Is OpenJDK good for Minecraft?
- Yes. OpenJDK builds such as Temurin work well with Minecraft, mod loaders, and custom launchers.
- How do I check my Java version for Minecraft?
- Open Command Prompt or Terminal and run java -version. The result shows the active Java release.
- Should I download Java 32-bit or 64-bit?
- Most modern computers need 64-bit Java. Choose x64 for Intel or AMD systems, or ARM64 for compatible ARM computers.
- How do I fix an outdated Java error in Minecraft?
- Install the Java release named by the error or mod loader. Then select its Java path in your launcher and test again.
Related reading
Minecraft Evoker Guide: Attacks, Locations, and Rewards
Learn where Evokers spawn, how they attack, and what they drop
How to Make It Rain and Stop Rain in Minecraft
Control rain in Minecraft with commands, settings, and simple gameplay tips.
Where Cows Spawn in Minecraft and How to Find More
Find cows, grow your herd, and collect food, leather, and milk.