7

Is there a way of pointing to the proper Java/JRE in dbeaver.ini?

This works:

dbeaver.exe -vm "C:\Program Files\Java\jre1.8.0_131\bin\server"

...but this way I can't pin DBeaver to taskbar (its icon gets duplicated)

Is there a way of achieving the above within the ini file? Or does the JRE need to be determined before dbeaver.ini file is read?

(I would like to stick to DBeaver without installing its bundled JRE.)

These are -vm args I tested as #1 line of dbeaver.ini:

-vm "C:\Program Files\Java\jre1.8.0_131\bin"
-vm "C:\Program Files\Java\jre1.8.0_131\bin\javaw.exe"
-vm "C:\Program Files\Java\jre1.8.0_131\bin\server"
-vm "C:\Program Files\Java\jre1.8.0_131\bin\server\jvm.dll"
13

Edit:

Specify the -vm argument after the -startup and -launcher.library arguments but before -vmargs. Additionally the path to the JRE should be on the line after -vm without the path quoted, e.g.

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-showsplash
-vm 
C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll
-vmargs
-Xms64m
-Xmx1024m

How did you install DBeaver? From the downloads page:

If you already have JRE installed on your computer you may disable JRE option in installer. However it is recommended to use JRE shipped with DBeaver (it won’t be break any existing JRE installation, nothing will be copied in system folders, registry or environment variables).

Did you disable the JRE option when installing?

  • Yes sir, I have disabled/unchecked installation of DBeaver's JRE. And I would like to point DBeaver to one of the JREs I have on my machine. – Jaroslav Záruba Jun 15 '17 at 12:05
  • 1
    @JaroslavZáruba Have you added -vm "C:\Program Files\Java\jre1.8.0_131\bin\server\javaw.exe" to your dbeaver.ini BEFORE -vmargs? – Kyle Jun 15 '17 at 13:08
  • javaw.exe is not under server\ (checked all JDKs/JREs under C:\Program Files\Java)... but I have updated the question with list of -vm I tested – Jaroslav Záruba Jun 16 '17 at 7:53
  • Regardless of what I put into the -vm arg I see following on the 3rd line of the error report: "java.version=1.7.0_55" – Jaroslav Záruba Jun 16 '17 at 8:13
  • 1
    @JaroslavZáruba, I've updated my answer to show an example .ini. I tested with a fresh install of DBeaver on Win 7 without JRE and pointed it to an existing JRE with success this way. – Kyle Jun 16 '17 at 14:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.