Java is what Minecraft needs to start, and you probably don't have it yet
Minecraft Java Edition won't launch without Java installed on your computer. Java is a separate program — not something that comes built in — and Minecraft needs a specific version to work properly. If you try to open Minecraft and nothing happens, or you see an error message about Java, this is almost always the fix.
The steps differ slightly depending on whether you use Windows, Mac, or Linux. This guide covers all three. The whole process takes about 10 minutes, and you only have to do it once.
Key Takeaways
- Minecraft Java Edition requires Java 17 or newer to run, and most computers do not have it installed by default.
- Download Java directly from Oracle's website (the company that makes it) rather than from search results, which often point to fake or bundled installers.
- Windows users should download the .exe installer and run it; Mac users need the .dmg file for their processor type (Intel or Apple Silicon).
- After installation, restart your computer before launching Minecraft, or the game will not find the newly installed Java.
- If Minecraft still will not start, check that Java installed to the correct location and that your computer meets the minimum RAM requirement of 2 GB.
Download Java from the official source
Go to oracle.com/java/technologies/downloads in your web browser. This is Oracle's official download page. Do not search for "Java download" in Google — the results include fake sites and bundled installers that come with unwanted software.
On the Oracle page, you will see a large button labeled "Download" under "Java 21" (or the current latest version). Click it. The page will ask you to accept the license agreement — check the box that says you accept it, then click the download button again. The file will start downloading to your computer.
If you are on an older computer and Java 21 will not install, you can download Java 17 instead by scrolling down on the same page. Java 17 works with Minecraft and is more stable on older machines. Either version works for Minecraft.
Install Java on Windows
Once the download finishes, open your Downloads folder and double-click the file named something like jdk-21_windows-x64_bin.exe. A window will pop up asking if you want to allow this program to make changes to your computer — click "Yes."
The Java installer will open. Click "Next" on the first screen. On the second screen, you can leave the installation location as the default (it will be something like C:\Program Files\Java). Click "Next" again, then "Install." The installer will copy files to your computer — this takes a minute or two.
When it finishes, click "Close." Now restart your computer completely. This step is important — Minecraft will not find Java until you restart. After the restart, open Minecraft and it should launch normally.
Install Java on Mac
Once the download finishes, check which processor your Mac has. Click the Apple menu in the top left, select "About This Mac," and look at the "Chip" line. If it says "Apple" (like Apple M1 or M2), download the ARM64 version. If it says "Intel," download the x64 version. Go back to oracle.com and download the correct file for your processor.
Double-click the downloaded file — it will be named something like jdk-21_macos-aarch64_bin.dmg (for Apple Silicon) or jdk-21_macos-x64_bin.dmg (for Intel). A window will open showing a Java icon and an Applications folder. Drag the Java icon into the Applications folder. This copies Java to your computer.
Close the window and restart your Mac. After the restart, open Minecraft and it should start. If Minecraft still will not launch, open System Preferences, click "Security & Privacy," and look for a message about Java being blocked. If you see one, click "Allow" next to it.
Install Java on Linux
Linux users typically install Java through the terminal using their system's package manager. Open a terminal and run one of these commands depending on your distribution:
For Ubuntu or Debian: Type sudo apt install openjdk-17-jre and press Enter. Type your password when prompted.
For Fedora: Type sudo dnf install java-17-openjdk and press Enter.
For Arch: Type sudo pacman -S jdk-openjdk and press Enter.
The package manager will download and install Java automatically. When it finishes, restart your computer and open Minecraft. It should launch without errors.
Verify Java installed correctly
If Minecraft still will not start after installation and restart, you can check whether Java actually installed. Open a terminal (Command Prompt on Windows, Terminal on Mac or Linux) and type java -version, then press Enter. If Java is installed, you will see a message showing the version number, like "java version 21.0.1".
If you see "java is not recognized" or "command not found," Java did not install to the location your computer checks automatically. This usually means the installer failed silently. Try downloading and installing again, and make sure you click "Yes" or "Allow" when the system asks for permission.
If Java is installed but Minecraft still will not start, check that your computer has at least 2 GB of RAM available. Open Task Manager (Windows), Activity Monitor (Mac), or System Monitor (Linux) and look at how much memory is in use. If you are using more than half your total RAM before opening Minecraft, close other programs first.
Troubleshoot if Minecraft still won't launch
If you have installed Java, restarted, and verified the installation, but Minecraft still will not open, try these steps in order.
First, uninstall Java completely and reinstall it. On Windows, go to Settings > Apps > Apps & Features, find Java in the list, click it, and select "Uninstall." On Mac, open Finder, go to Applications, find the Java folder, and drag it to Trash. Then download and install Java again from oracle.com, following the steps above.
Second, make sure you are launching the correct version of Minecraft. Minecraft Java Edition is different from Minecraft Bedrock Edition (the Windows 10/11 version). If you bought Minecraft from the Microsoft Store, you have Bedrock, which does not need Java. Java Edition is the original version and must be launched from the Minecraft Launcher application, not from the Windows Store.
Third, update your graphics drivers. Minecraft uses your graphics card, and outdated drivers can cause launch failures. On Windows, right-click your desktop, select "NVIDIA Control Panel" or "AMD Radeon Settings" depending on your card, and look for an update option. On Mac, go to System Preferences > Software Update.
Frequently Asked Questions
Do I need Java if I have Minecraft Bedrock Edition?
No. Bedrock Edition (the version sold in the Microsoft Store for Windows 10 and 11) does not use Java. Only Minecraft Java Edition requires Java. If you are not sure which version you own, check your Start menu or Applications folder — Java Edition shows as "Minecraft Launcher," while Bedrock shows as "Minecraft."
Is it safe to download Java from oracle.com?
Yes. Oracle is the company that makes Java and owns the official website. Downloading from oracle.com is safe. Avoid downloading Java from any other site, as fake Java installers exist that bundle unwanted software.
Why does Minecraft need Java if it's a game?
Minecraft Java Edition was written in the Java programming language, so it runs on top of Java rather than directly on your computer's operating system. This is why Java must be installed separately. Newer versions of Minecraft (Bedrock Edition) do not use Java.
Can I delete Java after I install it?
No. Minecraft needs Java to run every time you play. If you uninstall Java, Minecraft will stop launching. Keep Java installed as long as you play Minecraft Java Edition.
What if the Java installer says my computer is not compatible?
Your computer may be too old to run Java 21. Try downloading Java 17 instead from the same Oracle page — scroll down to find it. Java 17 has lower system requirements and works with Minecraft. If Java 17 also will not install, your computer may not meet the minimum requirements for Minecraft (Windows 7 or newer, Mac OS 10.12 or newer, or a modern Linux distribution).