I tried the suggestion by Nicolas Kuebler and it worked. However, I had to repeat this every single time I opened DBeaver and would lose any unsaved scripts in the process. In my case I found out that even when I was updating the driver using the process in the answer above DBeaver was not updating its dbeaver-drivers-config.xml
file to fix the name of the jdk.
To fix this I did the following
- Follow instructions from the initial answer. Remember to check the
Force Download /Overwrite
checkbox in the download popup in step 4
- Go to Database Driver Manager
- Select PostgreSQL (either double click or single select and then "Edit ...")
- Click on "Download/Update"
- Choose newer version (see bold version text) e.g. 42.5.4 for org.postgresql:postgresql:RELEASE
- Press "Download"
Once you complete this step open the dbeaver-drivers-config.xml
file at C:\Program Files\DBeaver\dbeaver-drivers-config.xml
or a different path where you installed it.
Read the /drivers/provider/library/@path
attribute value for postgresql provider in the XML and make sure that the path is valid on your computer and the name of the jar file is correct.
For me the old driver was not being deleted and the path to the file in the @path attribute was pointing to the old jar file. Whenver DBeaver launched again, it tried to use the old jar file and threw the same error. I manually changed this to the new name of the jar file and that fixed the issue.