#Best Java version

1 messages · Page 1 of 1 (latest)

serene ravine
#

!openjdk

mossy ledge
#
  1. Download an adoptium release for Java (recommended but not required):
  1. When installing through adoptium, make sure that Add to PATH and Set JAVA_HOME variable are both set to be installed (please see https://imgur.com/a/jPu1h7h for how that would look)

  2. Check if java has been correctly installed by running java --version (or java -version on older versions), and seeing if the output is correct (see https://imgur.com/a/OWcoq4p for an example of the output)

  • NOTE: 64 bit versions of java ALWAYS have '64-bit Server VM' in the version output. If that is not there, you have installed a 32-BIT version!! If you're getting Out of Memory errors or any other errors, PLEASE install 64-bit
  1. If the output isn't as intended, you have 2 options.
    i) Delete ALL other java versions from your PC (ONLY recommended if you don't need them)
    ii) Redirect your launcher/server to use your new installation of Java

Method i

  1. Uninstall any other java program listed in your programs list (differs by OS, please find a guide for your own OS if you don't know)
  2. Attempt to re-use the command mentioned above (if the output is now correct, which it should be, you are ready to go)

Method ii

  1. For a server, please modify the $Java/JAVA variable (found in your startup script depending on ps1/sh) to the path of your java installation. For windows, this path is usually found in "Program Files/Eclipse Adoptium/version_of_java/bin"
  2. For a client, depending on whether you use CurseForge, GD, or AT, the process is slightly different. Please see a guide for each respective launcher on how to change the java version.