There is a question: How to get Scilab 6.1.0 working on Ubuntu 20.04 LTS? that shows how to install Scilab 6.1.0 from either the Scilab tar from Scilab or from Ubuntu 20.10. The first one is for the CLI only -- I need the GUI. The second one forces the replacement/deletion of numerous libraries as well as applications that I need (such as grace). Is there any way -- without smashing other applications and staying with LTS only -- to get a working Scilab current GUI and CLI? (My understanding is that LTS is intended to be similar to Enterprise Linux whereas non-LTS is intended to be similar to Fedora -- I only used Scientific Linux -- a supported port of Enterprise from Fermilab/CERN -- until SL7 was the last distro -- there will be no SL8.) Unlike the Scientific Linux Users list in which the detailed line-by-line CLI output or configuration file, when I attempted to do this same approach for this Ubuntu "list", a Ubuntu list moderator removed the detailed output, and thus no one on this list can tell me specifically what to do to correct the use of the 20.10 Scilab (e.g., without detailed information, one cannot make a proper detailed recommendation -- this field is supposed to be computer science and engineering or perhaps IT). Is there a SNAP Scilab current GUI? Take care. Stay safe.
I have installed clean Ubuntu MATE 20.04 LTS and installed Scilab from repository here with
sudo apt-get update
sudo apt-get install scilab
After installation I tried to launch it from GUI (Applications → Other → Scilab) - it does not start.
Then I tried to launch it from terminal with scilab
command. Terminal output is as follows:
$ scilab
...
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).
so it can't find Java again. I reported bug 1870813 about this problem. But as usual there is no reaction from package maintainers.
What should I do to get Scilab 6.1.0 working on Ubuntu 20.04 LTS?
I have just ended clean installation of the Ubuntu 16.04 LTS. I installed Scilab here from the official repository as simple as sudo apt-get install scilab
.
Then I tried to launch it from the GUI, but it does not start.
Running scilab
from the terminal gives the following output:
$ scilab
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.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
at java.lang.Runtime.loadLibrary0(Runtime.java:871)
at java.lang.System.loadLibrary(System.java:1124)
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).
So it has problems with Java and OpenJDK. I have only one Java in my system:
$ update-java-alternatives -l
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
How can I fix the problem with Scilab start?
I have installed clean Ubuntu MATE 18.10 and installed Scilab from repository here with
sudo apt-get update
sudo apt-get install scilab
After installation I tried to launch it from GUI (Applications → Other → Scilab) - it does not start.
Then I tried to launch it from terminal with scilab
command. Terminal output is as follows:
$ scilab
Picked up _JAVA_OPTIONS: -Djava.class.path=/usr/share/java/flexdock.jar:/usr/share/java/skinlf.jar:/usr/share/java/looks.jar:/usr/share/java/commons-logging.jar:/usr/share/java/jhall.jar:/usr/share/java/lucene-core-4.10.4.jar:/usr/share/java/lucene-analyzers-common-4.10.4.jar:/usr/share/java/lucene-queryparser-4.10.4.jar:/usr/share/maven-repo/org/freehep/freehep-util/debian/freehep-util-debian.jar:/usr/share/maven-repo/org/freehep/freehep-io/debian/freehep-io-debian.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio/debian/freehep-graphicsio-debian.jar:/usr/share/java/freehep-graphicsio-emf-2.1.jar:/usr/share/java/freehep-graphics2d-2.1.1.jar:/usr/share/java/jrosetta-API.jar:/usr/share/java/jrosetta-engine-1.0.4.jar:/usr/share/java/jgraphx.jar:/usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar:/usr/share/java/jeuclid-core.jar:/usr/share/java/jlatexmath-fop-1.0.7.jar:/usr/share/java/fop.jar:/usr/share/java/saxon.jar:/usr/share/java/batik.jar:/usr/share/java/xml-apis-ext.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/jlatexmath-1.0.7.jar:/usr/share/java/ecj.jar:/usr/share/scilab/modules/helptools/jar/org.scilab.modules.helptools.jar:/usr/share/scilab/modules/helptools/jar/scilab_ru_RU_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_images.jar:/usr/share/scilab/modules/helptools/jar/scilab_en_US_help.jar:/usr/share/scilab/modules/graphic_objects/jar/org.scilab.modules.graphic_objects.jar:/usr/share/scilab/modules/renderer/jar/org.scilab.modules.renderer.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/graph/jar/org.scilab.modules.graph.jar:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar:/usr/share/scilab/modules/preferences/jar/org.scilab.modules.preferences.jar:/usr/share/scilab/modules/scirenderer/jar/scirenderer.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar:/usr/share/scilab/modules/action_binding/jar/org.scilab.modules.action_binding.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/ui_data/jar/org.scilab.modules.ui_data.jar:/usr/share/scilab/modules/types/jar/org.scilab.modules.types.jar:/usr/share/scilab/modules/history_manager/jar/org.scilab.modules.history_manager.jar:/usr/share/scilab/modules/external_objects_java/jar/org.scilab.modules.external_objects_java.jar:/usr/share/scilab/modules/console/jar/org.scilab.modules.console.jar:/usr/share/scilab/modules/history_browser/jar/org.scilab.modules.history_browser.jar:/usr/share/scilab/modules/javasci/jar/org.scilab.modules.javasci.jar:/usr/share/scilab/modules/completion/jar/org.scilab.modules.completion.jar:/usr/share/scilab/modules/commons/jar/org.scilab.modules.commons.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar: --add-modules=java.activation,java.xml.bind
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind not found
So I reported bug 1798661 to the LaunchPad.
It seems that I need to get java.xml.bind
from some package.
According to search on packages.ubuntu.com I need to install openjdk-11-jdk-headless
package, but it does not have needed file in Ubuntu 18.10 Cosmic.
Note: I do not want to download and extract binary archive from Scilab web-site (but this is a workaround). I need the solution with deb-packages using APT.
What else should I try?
I have installed clean Ubuntu MATE 18.04 LTS and installed Scilab from repository here with
sudo apt-get update
sudo apt-get install scilab
After installation I tried to launch it from GUI (Applications → Other → Scilab) - it does not start.
Then I tried to launch it from terminal with scilab
command. Terminal output is as follows:
$ scilab
/usr/bin/scilab-bin: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory
so it can't find Java. I reported bug 1762999 about this problem.
I checked existence of libjava.so
:
$ dpkg -S libjava.so
openjdk-11-jre-headless:amd64: /usr/lib/jvm/java-11-openjdk-amd64/lib/libjava.so
so it is in place.
What should I do to get Scilab 6.0.1 working on Ubuntu 18.04 LTS?