I get Unable to load Java Runtime Environment
when starting SQLWorkbenchJ.app.
I'm on macOS Catalina 10.15.2, and I installed the app with brew cask install sqlworkbenchj
. My JDK 8 is installed using brew install adoptopenjdk8
.
How do I solve this problem? SQLWorkbench/J does not provide any other helpful messages, even when I start it with open -a
in the Terminal.
Luckily I found a hint on SQLWorkbench/J's forum
The fix was to add ...
<key>JVMRuntime</key>
<string>adoptopenjdk-8.jdk</string>
... to /Applications/SQLWorkbenchJ.app/Contents/Info.plist
, and create a symlink to JDK8:
ln -s /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk /Applications/SQLWorkbenchJ.app/Contents/PlugIns/
Voila!