DtSQL GUI 无法在 Ubuntu 16.04 中打开(UnsatisfiedLinkError)

DtSQL GUI 无法在 Ubuntu 16.04 中打开(UnsatisfiedLinkError)
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/webmind25/Downloads/dtsql_linux_5_2_1/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(Unknown Source)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(Unknown Source)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Unknown Source)
    at java.awt.Toolkit.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    at com.jsoft.dtsql.MainRunner.main(Unknown Source)

答案1

UnsatisfiedLinkError 通常意味着缺少库。尝试安装提供错误中提到的库的软件包:

sudo apt update
sudo apt install libxtst6

如果这不起作用,请尝试安装 32 位版本的软件包:

sudo apt install libxtst6:i386

(你可能必须先做dpkg --add-architecture i368


发现了这个特殊案例这里在 Stack Overflow 上

相关内容