简体   繁体   中英

"Unable to load Java Runtime Environment" when starting SQLWorkbench/J

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM