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.
The issue can be rectified by manually removing the registry entries that don't correspond manually. Incomplete or corrupted Java Installation – Several users have managed to resolve this particular issue by uninstalling Java and then re-installing the JDK.
The message “Unable to load Java Runtime Environment” means that the Mac computer cannot load JRE, either because it is out of date or (more usually) because it has not yet been downloaded and installed. It can also happen after the computer OS X has been updated, e.g. to 10.14 Mojave from 10.13 Maverick.
The value CurrentVersion in HKLM\SOFTWARE\JavaSoft\Java Runtime Environment indicates the version, and JavaHome under HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\{version} provides the path.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With