【发布时间】:2020-09-24 19:27:32
【问题描述】:
我已经安装了 Scilab 6.1.0 的 ubuntu repo 并且我一直在尝试运行它,我得到的错误消息是
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath ?(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to field java.lang.ClassLoader.sys_paths
WARNING: Please consider reporting this to the maintainers of org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Could not access to the Main Scilab Class:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.scilab.modules.localization.Messages.gettext(Unknown Source)
at org.scilab.modules.commons.xml.XConfiguration.<clinit>(Unknown Source)
at org.scilab.modules.core.Scilab.<clinit>(Unknown Source)
Caused by: java.lang.NullPointerException
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
at java.base/java.lang.System.loadLibrary(System.java:1870)
at org.scilab.modules.localization.MessagesJNI.<clinit>(Unknown Source)
... 3 more
Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available).
我尝试过: - 从 cli 运行 - 从启动器运行
cli 版本有效
已前往论坛并检查了不同的解决方案 - 删除 SCIHOME 目录。 - 重新安装 Scilab。 - 从不同来源重新安装。 - 清除所有与 Scilab 相关的目录并重新安装。
【问题讨论】:
-
scilab 是 matlab 的一个开放替代品,这很有趣 - 不好笑,但是当您尝试将它安装在最常用的 linux 发行版之一上时,它就坏了。
标签: java ubuntu scilab ubuntu-20.04