Table of Contents
Install/Verify Java (Windows)
You will need Java installed if you want to:
- Run Minecraft in MultiMC or Prism Launcher
- Run Technic Launcher
- Change the default “JAVA EXECUTABLE” to other than the bundled Java runtime in a Minecraft Launcher “Installation”
For Minecraft 1.17-1.20.4 we recommended using Java 17.
For Minecraft 1.20.5 and higher we recommend using Java 21.
Video Tutorial
STEP 1: Verify if Java is already installed
Open the Run dialog by using the Windows+R hotkey. Enter cmd
in the textbox and click OK
This will open a command window.
In the command window type java -version
and press Enter
If Java is already installed you will see something like this:
STEP 2: Uninstall previous Java versions
If you already have Java installed and you want to update/replace it, you may want to uninstall any Java version(s) installed in your system using the Operating System normal procedure for uninstalling programs.
STEP 3: Install Java
Download the Java 21 installer from here.
Choose the JDK .msi
:
Open the JAVA installer you just downloaded:
When installing Java, change the way features will be installed:
Set the following features to “Entire feature will be installed on local hard drive”:
- Set JAVA_HOME variable
- JavaSoft (Oracle) registry keys
Finish the installation, then go back to STEP 1 to verify that Java was installed correctly.