SQuirreL 无法启动

SQuirreL 无法启动

我正在努力奔跑松鼠在 Ubuntu 18.04 上,但我无法启动它。

当我跑步时

~/squirrel-sql-3.8.1/squirrel-sql.sh 

什么都没发生。我不太了解 sh 脚本。我尝试运行:

java -cp squirrel-sql.jar:~/squirrel/sql-3.8.1/lib* -splash:~/squirrel-sql-3.8.1/icons/splash.jpg net.sourceforge.squirrel_sql.client.Main --squirrel-home "~/squirrel-sql-3.8.1"

但随后它又说

java.lang.UnsatisfiedLinkError: no splashscreen in java.library.path
    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2541)
    at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:873)
    at java.base/java.lang.System.loadLibrary(System.java:1857)
    at java.desktop/java.awt.SplashScreen$1.run(SplashScreen.java:134)
    at java.desktop/java.awt.SplashScreen$1.run(SplashScreen.java:132)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.desktop/java.awt.SplashScreen.getSplashScreen(SplashScreen.java:131)
    at net.sourceforge.squirrel_sql.client.gui.SquirrelSplashScreen.<init>(SquirrelSplashScreen.java:37)
    at net.sourceforge.squirrel_sql.client.Application.startup(Application.java:219)

我的Java版本:

openjdk version 9-Ubuntu
OpenJDK Runtime Environment (build 9-Ubuntu+0-9b181-4)
OpenJDK 64-Bit Server VM (build 9-Ubuntu=0-9b181-4, mixed mode)

有任何想法吗?

答案1

挑出来。

我通过以下方式升级到 Java 10:

sudo apt-get install openjdk-11-jre openjdk-11-jdk

现在 Java 版本如下:

openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Enviornment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server (buidl 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)

现在应用程序已启动。

答案2

下面是我尝试运行时遇到的错误squirrel-sql.sh。我安装了 headless jdk,这导致了此问题。

错误 :

sourabh@phoenix:~/squirrel-sql-4.1.0-standard$ ./squirrel-sql.sh 
java.lang.UnsatisfiedLinkError: no splashscreen in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
    at java.lang.Runtime.loadLibrary0(Runtime.java:871)
    at java.lang.System.loadLibrary(System.java:1124)
    ...........

卸载 Headless Java JDK:

sourabh@phoenix:~/squirrel-sql-4.1.0-standard$ sudo apt-get remove openjdk-8-jre-headless 

安装Java JDL:

sourabh@phoenix:~/squirrel-sql-4.1.0-standard$ sudo apt-get install openjdk-8

相关内容