Elona Spiral
Member
- Aug 31, 2020
- 232
- 222
- 170
Sorry if I replied to something that was posted quite sometime ago but following this advice helped me a lot and I managed to get the game running on my Linux rig.You'll have to start it from Terminal withjava -jar LilithsThrone_0_4_4.jar
However (and you're going to hate this): Lilith's Throne, as distributed, will not work with any version of Java newer than 10 due to it needing some components that were later stripped out (namely, JavaFX and the Nashorn JavaScript engine). There has been anYou must be registered to see the linksfor almost a year at this point and the build system changes still haven't been merged.
You'll have to do something like this to get it to work:
Note that I play LT from within a development environment, so the above directions might be slightly inaccurate. They should be fairly close, though.
- Download the 64-bit Linux build of Java 8 directly from Oracle.
- Extract the .tar.gz somewhere in your home directory.
- Explicitly use that version of Java 8 to launch LT:
/home/username/java8/jre8_blah_blah/bin/java -jar LilithsThrone_0_4_4.jar- You might need to be in the Lilith's Throne directory for the above to launch the game correctly. Use the
cdcommand to navigate through directories if necessary.
I tried using later versions of OpenJDK and using that to run the jar file and I kept getting errors which I don't know what to do with.
And somehow my distro does not have a straightforward way to install JavaFX.
Luckily I came across your post about needing Java 8 and using the script to use that Java 8 to run the jar file.
Here's my script in case anyone needs it to get the game to run on Linux, be sure to change Java8 to wherever you extracted Java 8 to.
Make sure you downloaded the jar version.
Code:
#!/bin/bash
# Change into the script's directory.
cd "${0%/*}"
# Try to get the latest version of LT.
jar=
for file in "LilithsThrone_"*".jar"; do
[[ ${file} > ${jar} ]] && jar=${file}
done
# Quick sanity check.
if [[ ${jar} == "LilithsThrone_*.jar" ]]; then
echo "Lilith's Throne JAR file could not be found."
echo
echo "Make sure to put this script in your Lilith's Throne directory."
exit 1
fi
# Change Java8 to wherever you have Java 8 installed.
Java8=/home/jre1.8.0_371/
gamemoderun ${Java8}/bin/java -jar ${jar}