macOS version on launch shows "To use Java command-line tools you need to install a JDK"
See original GitHub issueSystem information:
- Operating system (distribution) and version: macOS 10.15.4 with all updates
- DBeaver version: 7.0.5
- Additional extensions
Connection specification:
- Database name and version: n/a
- Driver name
- Do you use tunnels or proxies (SSH, SOCKS, etc)?
Describe the problem you’re observing:
Whenever I try to run DBeaver, I get the following dialog box: To be clear, app never runs.
Steps to reproduce, if exist:
Download the .DMG and mount. Window show usual application and alias to /Applications. Drag/drop application icon to /Applications alias. Double-click DBeaver.app in /Applications folder.
I figured you included the necessary JRE in the macOS bundle as some other apps do, since the main GitHub page states
…
Running
DBeaver requires Java (JRE) 1.8+ to run.
- Windows and MacOS X installers include JRE so just use them and don’t think about internals.
- On Linux you may need to install Java manually (usually by
running sudo apt-get install openjdk-11-jdk
or something similar). - If you don’t use installer (on Windows or Mac OS X) you may need to download Java (JDK) from Adopt OpenJDK web site. …
Odder still is that I DO have Java installed, specifically Oracle JRE version 8 update 251. So not sure what’s going on here. But dialog box does indicate the app is trying to do something which requires the JDK vs. the JRE.
Include any warning/errors/backtraces from the logs
Not possible as can’t get to Window menu since app won’t start, and there’s no ~/Library/DBeaverData/
let alone subdirectories therein.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
it still wasn’t working for me - I have installed OpenJDK and dbeaver from homebrew. Java version:
More google searching and I came across this bug report. I had the latest openjdk from home-brew, but installing the cask adoptopenjdk fixed the problem. Adding this to hopefully save some people time in the future.
Cheers
your second link is the download page, and the first link of the mac os section is the one dubbed as “installer” which should be a PKG file. That said, I don’t use MacOS nor I’m a dbeaver developer, just a user trying to help based on what I’ve seen in many similar issues in the past.
Also I don’t see how your quote shows dbeaver needs a jdk to run instead of just a jre. The java program is part of the jre, not the jdk.