Skip to content

Using the right Java

Petr Mrázek edited this page Jan 9, 2020 · 41 revisions

The right Java version to use is Java 8, with the same architecture as your CPU. If you don't know how to get it, read on.

Getting and installing Java

Linux

  • Install the right package

    Unbuntu/Debian derivatives

    # apt-get install openjdk-8-jre
    

    Arch

    # pacman -Sy jre8-openjdk
    

    RPM-based distributions

    # yum install java-1.8.0-openjdk
    

Common issue is that people install only the headless version, and then it doesn't work. Make sure you have the full desktop version. Headless is for servers.

Windows

  • Go to https://www.java.com/en/download/manual.jsp
  • Download the Windows Offline (64-bit) installer, if your CPU is 64bit.
  • Download the Windows Offline installer, if your CPU is 32bit - you will be limited to roughly 1500MB Java heap size, which is not big enough for mods in most cases.
  • Install it.

There is an exception when using some poorly supported/unsupported old integrated GPUs from Intel. See Unsupported-Intel-GPUs for details.

macOS

Setting up Java in MultiMC

Clone this wiki locally