Skip to main content
All CollectionsModrinth App
Java installations

Java installations

How do I install Java?

Emma Alexia avatar
Written by Emma Alexia
Updated yesterday

Java is the coding language that Minecraft uses. In order to play Minecraft, you must have Java installed.

Go to your app settings by clicking the cog (⚙️) in the bottom-left, then go into the "Java installations" section. Click "Install recommended" next to "Java 21 location", "Java 17 location", and "Java 8 location". Allow some time for all three to be downloaded.

Even if there are already values entered for these three fields, we still recommend using the recommended versions. Sometimes, the Java installations already on your system by default will be outdated or the wrong type of Java. For example, if you're playing Minecraft 1.16.5 or older and you encounter an issue saying that you are out of memory, you likely have a 32-bit version of Java when you need a 64-bit version. Using the "Install recommended" button makes sure that you have the correct version.

Did this answer your question?