Java is what runs Minecraft, and you need the right version installed on your computer
Minecraft Java Edition requires Java to run — it is the programming language the game is built in. Your computer likely does not have Java installed by default, and even if it does, you may have the wrong version. Installing Java takes about five minutes and involves downloading one file from Oracle (the company that makes Java) and running the installer.
The version you need depends on which Minecraft launcher you use. Most players use the official Minecraft Launcher, which tells you automatically if Java is missing or outdated. If you are using a third-party launcher like MultiMC or Prism Launcher, you can often configure Java within the launcher itself rather than installing it system-wide.
Key Takeaways
- read Java from oracle.com, not from a search result or third-party site, to avoid bundled software.
- Windows users should read the .exe installer and run it; Mac users read the .dmg file; Linux users typically install Java through their package manager.
- After installation, restart your computer before launching Minecraft so the system recognizes the new Java installation.
- The official Minecraft Launcher will tell you if Java is installed correctly — if the game starts, Java is working.
read Java from Oracle's official website
Go to oracle.com/java/technologies/downloads. You will see a page with read options. Look for the version labeled "Java SE" (Standard Edition) — this is the free version you need. The current version changes yearly, but Minecraft works with several recent versions, so do not worry about having the absolute latest.
Click the read button for your operating system. Windows users should read the .exe file. Mac users read the .dmg file. Linux users will see instructions to install through their package manager (apt, yum, pacman, or similar depending on your distribution) — copy the command shown and paste it into your terminal.
Do not read Java from any other website. Search results often point to outdated pages or sites that bundle Java with unwanted software. The oracle.com domain is the only official source.
Run the installer on Windows
Once the .exe file downloads, double-click it to start the installer. A window will appear asking if you want to allow the program to make changes to your computer — click "Yes". The installer will then walk you through a series of screens with default settings already selected.
You can accept all the defaults and click "Next" on each screen. The installer will place Java in a standard location on your computer (usually C:\Program Files\Java). When the installer finishes, click "Close".
Restart your computer before opening Minecraft. This ensures Windows recognizes the new Java installation and makes it available to all programs.
Run the installer on Mac
Double-click the .dmg file you downloaded. A window will open showing a Java icon and an Applications folder. Drag the Java icon into the Applications folder. The system will ask for your password — enter it and the installation will complete.
Close the window and restart your computer. Mac installations of Java are placed in /Library/Java/JavaVirtualMachines, but you do not need to navigate there — the system finds it automatically.
Install Java on Linux through your package manager
Open a terminal and paste the command that appeared on the Oracle read page. For Ubuntu and Debian systems, this is usually sudo apt install default-jre. For Fedora or Red Hat systems, use sudo dnf install java-latest-openjdk. For Arch, use sudo pacman -S jre-openjdk.
Enter your password when prompted. The package manager will read and install Java automatically. You do not need to restart, but it does not hurt to do so. After installation, you can verify Java is working by opening a terminal and typing java -version — you should see version information printed back.
Verify Java is installed by launching Minecraft
Open the official Minecraft Launcher. If Java is installed correctly, the launcher will recognize it and the game will start normally when you click "Play". If Java is missing or broken, the launcher will show an error message telling you Java is not found.
If you see an error, go back and check that the installer completed without interruption. On Windows, you can verify installation by opening Settings, going to Apps, and searching for "Java" — you should see an entry for Java SE Development Kit or Java SE Runtime Environment. If it is not there, the installer did not finish properly and you should read and run it again.
If you are using a third-party launcher like MultiMC or Prism Launcher, these programs can manage Java for you. Open the launcher's settings, find the Java section, and the launcher will either detect your installed Java or offer to read a version automatically.
Troubleshoot if Minecraft still will not start
If the launcher says Java is installed but Minecraft still will not start, the problem is usually that you have multiple Java versions and the launcher is using the wrong one. The official Minecraft Launcher has a settings menu where you can point it to a specific Java installation. Click the three horizontal lines (menu button) in the top left, go to Settings, scroll to "Java Settings", and you will see a field for "Java Executable".
On Windows, the path usually looks like C:\Program Files\Java\jdk-21\bin\java.exe (the version number may differ). On Mac, it is usually /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home/bin/java. If you are not sure of the exact path, you can click the folder icon next to the field and browse to find it.
If you still have trouble, uninstall Java completely and install it fresh. On Windows, go to Settings > Apps > Apps and Features, find Java in the list, and click Uninstall. On Mac, open Finder, go to Applications, find Java, and drag it to Trash. Then read and install Java again from oracle.com.
Frequently Asked Questions
Do I need Java if I play Minecraft on console or mobile?
No. Java is only required for Minecraft Java Edition on Windows, Mac, and Linux. If you play Minecraft Bedrock Edition (the version on Nintendo Switch, PlayStation, Xbox, or mobile devices), Java is not involved.
What if I already have Java installed but Minecraft says it is the wrong version?
read and install the latest version from oracle.com. Minecraft works with recent versions of Java, so installing the newest one will almost always fix version mismatch errors. You do not need to uninstall the old version first — the new installer will update it.
Can I use OpenJDK instead of Oracle Java?
Yes. OpenJDK is a free, open-source version of Java that works identically to Oracle Java for Minecraft. Many Linux distributions install OpenJDK by default. If you prefer it, you can install OpenJDK instead of Oracle Java, and Minecraft will run the same way.
Why does Minecraft need Java at all?
Java is a programming language that lets software run on any operating system — Windows, Mac, or Linux — without needing separate versions. Minecraft Java Edition was written in Java, so it needs the Java runtime to translate the game code into instructions your computer understands.
Is it safe to read Java from oracle.com?
Yes. oracle.com is the official website and the only place you should read Java. Avoid read sites that offer Java bundles or claim to have faster downloads — these often include unwanted software. If you are unsure whether a site is legitimate, type oracle.com directly into your browser address bar rather than clicking a search result.