我在VirtualBox (Ubuntu)上运行OpenDayLight (发行版-karaf-0.4.0-Beryllium)。我想我已经安装了所有必要的程序,但是我得到了这个错误:
./bin/karaf: 242: [: Illegal number:
OpenJDK 64-Bit Server VM warning: Ignoring option UnsyncloadClass; support was removed in 11.0
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
-Djava.endorsed.dirs=/usr/lib/jvm/java-11-openjdk-amd64/jre/lib/endorsed:/usr/lib/jvm/java-11-openjdk-amd64/lib/endorsed:
/home/pati/distribution-karaf-0.4.0-Beryllium/lib/endorsed is not supported.
Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.从昨天开始,我一直在阅读关于解决方案的文章,但都没有奏效。有没有人以前遇到过这个错误,或者知道任何解决方案?
我也试过在没有虚拟机的情况下在我的电脑上运行它,它可以工作,但我需要在Virtualbox上运行它。
发布于 2021-02-18 19:07:07
好了,我找到解决方案了。我不得不将java版本从11改为8,这对我很有帮助。
https://stackoverflow.com/questions/66257518
复制相似问题