Put Java in endless OS

Below a quickhack on how to get TLauncher+Minecraft in EOS. Perform the following commands in Terminal. This will:

  1. Fetch and install OpenJDK directly beneath your home directory
  2. Fetch and unpack TLauncher directly beneath your home directory
  3. Create a Desktop shortcut called “TLauncher” to start it from the Desktop
cd ~
wget https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.17%2B8/OpenJDK11U-jdk_x64_linux_hotspot_11.0.17_8.tar.gz
gzip -dc OpenJDK11U-jdk_x64_linux_hotspot_11.0.17_8.tar.gz | tar -xvf -
wget --content-disposition "https://dl2.tlauncher.org/f.php?f=files%2FTLauncher-2.86.zip"
mkdir ~/tlauncher
pushd ~/tlauncher
unzip ~/TLauncher-2.86.zip
mkdir -p ~/.local/share/applications
cat << EOF | tee ~/.local/share/applications/TLauncher.desktop
[Desktop Entry]
Type=Application
Name=TLauncher
Exec=/sysroot/home/$(whoami)/jdk-11.0.17+8/bin/java -jar -Xmx1024M /sysroot/home/$(whoami)/tlauncher/TLauncher-2.86.jar
EOF
chmod +x ~/.local/share/applications/TLauncher.desktop
gio set ~/.local/share/applications/TLauncher.desktop metadata::trusted yes