我想用信号-cli从我的基于 Pi 的猫喂食器发送一些信号消息。我相信我已正确遵循安装步骤。当我尝试运行该命令时,出现错误:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/asamk/signal/Main
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) [...]
当我运行时apt list --installed | grep jre
,我得到这些结果:
default-jre/oldoldstable,now 2:1.8-58+deb9u1+b3 armhf [installed]
default-jre-headless/oldoldstable,now 2:1.8-58+deb9u1+b3 armhf [installed,automatic]
openjdk-8-jre/oldoldstable,now 8u322-b06-1~deb9u1 armhf [installed]
openjdk-8-jre-headless/oldoldstable,now 8u322-b06-1~deb9u1 armhf [installed,automatic]
我apt-get install --only-upgrade [packagename]
在 default-jre 和 openjdk-8-jre 上运行,它做了一些工作将它们提升到最新版本。但运行 signal-cli 时的错误仍然存在。我该怎么做才能使这个命令行工具运行时没有错误?