Skip to content

settings custom java path

TOLoneWolf-Github edited this page May 18, 2020 · 4 revisions

Custom Java Path



You will need Java 8 Hotspot 64-bit.
Please see this link for installers:
Java 64-bit Installers


Go into GDLaunchers (GDL) settings (gear icon).
GDL Main Window


Go to the java tab on the left.
Click the toggle button on the right side of Autodetect Java Path to its off (grey) position.

GDL Toggle Java Auto Detect

A new input box will be displayed with a folder button next to it.

You can ether:

  • Type/paste the full path of the executable(Java) in the dark blue input box area.
  • Click the blue folder icon on the right side, and navigate to it.

From here the steps are a little different depending on your operating system (OS).

Jump to OS specific instructions:


Windows

If using the button navigate to the folder where java is installed in the window that opens.
Your path should be similar to:
C:\Program Files\AdoptOpenJDK\<jdk|jre>-<version_number>-hotspot\
Go to the bin folder inside of <jdk|jre>-<version_number>-hotspot.
Then finally select the java executable and click open.

The contents of the input box, just left of the button we pressed should look similar to this:
C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin\java.exe


MacOS

If using the button navigate to the folder where java is installed in the window that opens.
Your path should be similar to:
/Library/Java/JavaVirtualMachines/adoptopenjdk-<version>.<jdk|jre>/Contents/Home/bin
<version> and <jdk|jre> are place holders.

This is what my path is (and at the time of writing this is what all adoptopenjdk-8 will be):
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java


If you have different Java versions installed that you want to use, they should be here:
/Library/Java/JavaVirtualMachines/
Open any of the folders inside this one and then into the follow folders:
Contents/Home/bin and select the file:
java


Linux

If using the button navigate to the folder where java is installed in the window that opens.
Your path should be similar to:
/usr/share/java/

Use the package manager your distro has to install java if you need a different one:
Java 64-bit Installers