无法打开 smartgit,Java 错误

无法打开 smartgit,Java 错误

我已经通过 ppa 安装了 smartgit,并尝试通过 GUI 打开它,但没有成功。我尝试smartgit在终端中运行命令,结果显示:

Ignoring following line in file /usr/share/smartgit/bin/smartgit.vmoptions
jre=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
Ignoring following line in file /home/yarkin/.smartgit/smartgit.vmoptions
jre=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
If you experience strange GUI bugs or crashes, try setting GTK_THEME=Adwaita.
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/syntevo/QBootLoader has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

我不知道我还应该提供什么,请告诉我,以便我可以更新问题。

答案1

不要使用 PPA。只需从开发者的网站获取软件即可。

https://www.syntevo.com/smartgit/

我总是使用“下载 Linux 版”版本。只需解压,即可直接运行文件。文件夹中.sh还有一个方便的脚本,用于创建 Smartgit 的快捷方式,以便您可以从桌面环境的启动器启动它。add-menuitem.sh/bin

只需先将解压后的文件夹移动到不会丢失的地方即可。比如~/Documents可能是安全的地方。

相关内容