[[https://docs.fabricmc.net/players/installing-java/windows|{{::move-notice.png?nolink&400|}}]] ====== Install/Verify Java (Windows) ====== You will need Java installed if you want to: * Install a Fabric server. [[player:tutorials:server:windows|Windows]] and [[player:tutorials:install_server|Linux]] guides available * 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 and higher we recommended using Java 17. ====== ---- ===== Video Tutorial ===== See the video tutorial by Kennas [[https://youtu.be/5JREP_8XgbE|here]] or click the image below: [[https://youtu.be/5JREP_8XgbE|{{:player:tutorials:java:windows:yt01.jpg?direct|YouTube}}]] ---- ===== 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. {{:player:tutorials:java:windows:01.jpg?direct|}} In the command window type ''java -version'' and press ''Enter'' {{:player:tutorials:java:windows:02.jpg?direct|}} If Java is already installed you will see something like this: {{:player:tutorials:java:windows:03.jpg?direct|}} ---- ===== 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 ===== To download the Java 17 installer, from [[https://adoptium.net/temurin/releases/?version=17|here]]. Choose the ''JDK .msi'': {{:player:tutorials:java:download_java_re_.msi.png|}} Open the JAVA installer you just downloaded: {{:player:tutorials:java:windows:06a.jpg?direct|}} When installing Java, change the way features will be installed: {{:player:tutorials:java:windows:07.jpg?direct|}} Set the following features to "Entire feature will be installed on local hard drive": * Set JAVA_HOME variable * JavaSoft (Oracle) registry keys {{:player:tutorials:java:windows:08.jpg?direct|}} Finish the installation, then go back to **[[player:tutorials:java:windows#step_1verify_if_java_is_already_installed|STEP 1]]** to verify that Java was installed correctly.