robertjanetzko / LegendsBrowser

Legends Browser is an multi-platform, open source, java-based legends viewer for dwarf fortress 0.42.
MIT License
63 stars 19 forks source link

JRE Load Error (Mac OS) #79

Open wmakley opened 2 years ago

wmakley commented 2 years ago

When trying to legends browser in Mac OS 11.5.2, I receive the following error after bypassing the security stuff:

Screen Shot 2021-08-23 at 7 36 41 AM
kupson commented 2 years ago

Looks like JavaAppLauncher is not working correctly on my system too.

Workaround.

I was able to start Legends Browser from the terminal after downloading Java SDK:

$ java -version
java version "17.0.2" 2022-01-18 LTS
Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)

Starter script (assumes that LB is in your home directory Applications folder):

#!/bin/sh
set -eu
cd "${HOME}/Applications/Legends Browser.app/"
java -cp $(find . -name "*.jar" | tr '\n' ':') legends.Application