我已经通过 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)
我不知道我还应该提供什么,请让我知道,以便我可以更新问题。
不要使用 PPA。只需从开发人员的网站上获取软件。
https://www.syntevo.com/smartgit/
我总是使用“Download for Linux”版本。解压即可,
.sh
直接运行文件即可。该文件夹中还有一个方便的add-menuitem.sh
脚本,/bin
用于为 Smartgit 创建快捷方式,因此您可以从桌面环境的启动器中启动它。只需先将解压后的文件夹移动到不会丢失的地方。就像
~/Documents
可能是一个安全的地方。