#Best Java version
1 messages · Page 1 of 1 (latest)
- Download an adoptium release for Java (recommended but not required):
- Java 11 (https://adoptium.net/temurin/releases/?version=11) for versions 1.16.5 and below (can also use 8 if its not working)
- Java 18 (https://adoptium.net/temurin/releases/?version=18) for any versions newer (or 17 if 18 doesn't work)
- Consider installing the JRE instead of the JDK for a smaller file size
-
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)
-
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
- 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
- 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)
- 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
- 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"
- 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.