question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS version on launch shows "To use Java command-line tools you need to install a JDK"

See original GitHub issue

System 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: Screen Shot 2020-05-18 at 2 02 14 PM 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
philwattcommented, Aug 20, 2020

it still wasn’t working for me - I have installed OpenJDK and dbeaver from homebrew. Java version:

java --version
openjdk 14.0.1 2020-04-14
OpenJDK Runtime Environment (build 14.0.1+14)
OpenJDK 64-Bit Server VM (build 14.0.1+14, mixed mode, sharing)
Screenshot 2020-08-20 at 10 00 21 pm

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

1reaction
p91paulcommented, May 19, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make the Mac's annoying “To use the java command ...
For macOS Catalina and higher. Go to Oracle's Java downloads page. Look for the highest-numbered version, probably near the top of the page....
Read more >
8 Installation of the JDK and the JRE on macOS
After installing Java for macOS 2012-006, /usr/bin/java will find the newest JDK installed, and will use that for all of the Java-related command-line...
Read more >
To use the "java" command-line tool you need to install a JDK
Went from G5 to MacBook Air. Mojave 10.14.1. How do I get rid of this annoying pop up? ... Or go to Oracle.com...
Read more >
To use the "java" command-line tool you need to install a JDK
What is the URL given on more ? Have you installed any java or java dependent programs via brew · the url given...
Read more >
To open "application" you need to install the legacy Java SE 6 ...
Running some applications on Mac version 10.12 Sierra, 10.10 Yosemite and 10.11 El Capitan ... To use the "java" command-line tool you need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found