当我尝试在 Ubuntu 16.10 上运行 fiji 时,我得到了
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
我猜真正的错误是
java/lang/NoClassDefFoundError: java/lang/Object
我该如何解决这个问题?我正在使用已安装的 Java
$ java -v
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.10.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
答案1
正如在Linux 常见问题解答要运行 Fiji 或 ImageJ,你需要--java-home
在 Ubuntu 16.04(使用 java-8)上使用此命令
./ImageJ-linux64 --java-home /usr/lib/jvm/java-8-openjdk-amd64