[Slackbuilds-users] dbeaver-ce not finding jre
yalhcru at gmail.com
Fri Jun 19 17:56:49 UTC 2020
On 6/19/20, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> "A Java Runtime Environment (JRE) or Java Development Kit (JDK)
> must be available in order to run Dbeaver. No Java virtual machine
> was found after searching the following locations:
> java in your current PATH"
> But, /opt/dbeaver-ce/ does not have a jre/ subdirectory:
The 1st location, /opt/dbeaver-ce/jre/bin/java, would be for a
'standalone' package of dbeaver-ce that includes its own private JRE,
which the SBo package doesn't do.
The 2nd location it searched was "java in your current PATH", which
should have worked.
You can test for it by just typing "java" at the shell prompt. If you get
"command not found", then your PATH is incorrect. If you get the usage
message for java (showing its command line options), your PATH is OK.
If you know your PATH is OK, but dbeaver-ce still complains that it can't
find java, then and only then is there an actual issue with dbeaver-ce.
> What should I do to get dbeaver-ce running?
Are you logging out and back in, after installing openjdk (or any
of the various java VM packages)? They all add a script to set PATH
appropriately, in /etc/profile.d, and you have to either log out and
back in, or find the name of the script and manually source it.
The openjdk README even tells you this:
After installing the package you will need to logout/reboot your machine
as it will add new files to the /etc/profile.d folder.
...though the wording is ambiguous: it could be read to mean "logout
and then reboot", which is not the case. Just log out and back in.
More information about the SlackBuilds-users