报错如下
$ cat 1611627921082.log
!SESSION 2021-01-26 10:25:20.892 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_275
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=zh_CN
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.compare 4 0 2021-01-26 10:25:21.514
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.compare [27]
Unresolved requirement: Require-Bundle: org.eclipse.ui.navigator; bundle-version=“[3.2.0,4.0.0)”; resolution:=“optional”
-> Bundle-SymbolicName: org.eclipse.ui.navigator; bundle-version=“3.9.500.v20201021-1339”; singleton:=“true”
org.eclipse.ui.navigator [151]
Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version=“[3.6.0,4.0.0)”
-> Bundle-SymbolicName: org.eclipse.ui; bundle-version=“3.118.100.v20201123-0719”; singleton:=“true”
org.eclipse.ui [143]
Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version=“[3.120.0,4.0.0)”; visibility:=“reexport”
-> Bundle-SymbolicName: org.eclipse.ui.
解决方法
修改dbeaver的配置,在里面指定jdk,我的问题是因为我同时安装了两个jdk,开始安装db的时候默认jdk11,后来jdk默认1.8,导致db无法启动。
sudo vim /usr/share/dbeaver/dbeaver.ini
## 在-vmargs上添加两行
-vm
##此处填上 你的JDK路径