Minecraft wiki entry for Setting_up_a_server, associated text: For most distributions, it is recommended to install OpenJDK 16 (for 1.17+) or OpenJDK 8 (for below 1.17) from the official repositories. For Oracle Java refer to Oracle's Download Page.