Java – download the latest version free
Java is one of the world’s most widely used programming languages and is required by countless apps — from games like Minecraft to enterprise systems. On this page you can download both the official Oracle Java and the free OpenJDK build for Windows, macOS, and Linux.
We tested both editions on a Windows 11 PC, and installation and everyday use worked flawlessly. For most people the difference is small — but there are a few important things to know before you choose which version to download.
What is Java?

Originally developed by Sun Microsystems in 1995, Java is used everywhere — from apps and games to banking and business software.
It’s both a programming language and a platform, which means software can run across operating systems without changes.
In short: with Java installed, you can run thousands of programs that otherwise wouldn’t work on your computer.
Oracle Java vs. OpenJDK

The two editions are nearly identical in functionality but differ in licensing and distribution:
| Version | Publisher | Price | Best for |
|---|---|---|---|
| Oracle Java (JRE / JDK) | Oracle Corporation | Free for personal use; license required for commercial use | Businesses and professionals |
| OpenJDK | Open source (Adoptium, Red Hat, Microsoft, etc.) | 100% free | Home users and developers |
For most U.S. users (danske brugere) we recommend OpenJDK, which is free, stable, and updated regularly. However, if your company requires official support, choose Oracle Java.
Java for Minecraft and other games
One of the most common reasons to download Java is Minecraft Java Edition.
This version of the game requires Java to start and run properly.
Both Oracle Java and OpenJDK work, but in our testing Minecraft ran slightly faster with the official Oracle build.
How to install Java
The exact steps depend on your operating system, but the process is straightforward:
💻 Windows 10 and 11:
- Download the installer.
- Double-click and follow the prompts.
- Java is added to your system PATH automatically.
🍎 macOS:
- Download the .dmg file.
- Drag the Java icon to Applications.
- If prompted, grant permission via System Settings → Privacy & Security.
🐧 Linux (Ubuntu/Debian):
sudo apt updatesudo apt install openjdk-21-jdkFrequently asked questions about Java
Top 5 tips for Java
Keep Java up to date
Older versions can contain security vulnerabilities. Update regularly via the Java Control Panel.
Use OpenJDK if you’re a developer
OpenJDK is open source and typically updated faster — perfect for development and testing.
Disable Java in the browser
Java is rarely used in browsers today, so disable it for better security.
Test your Java installation
Oracle has removed the old verification page. To check your installation, open Command Prompt and type:
java -version
Here you can see which version of Java is installed.
If you want to remove older builds, use Oracle’s official uninstall tool here:
https://www.java.com/en/download/uninstalltool.jsp Then verify that the installation works.
Install only from official sources
Avoid unofficial sites — many fake downloads contain malware. Holyfile only links directly to official files and pages.



