Scilab is unable to start due to "Could not access to the Main Scilab Class"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-8 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
scilab (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Have Ubuntu 16.04 LTS installed
2. Install Scilab package with simple `sudo apt-get install scilab`
3. Launch Scilab from terminal with `scilab`
Expected result:
* Scilab starts and shows GUI
Actual result:
* Scilab does not start and do not show GUI, only error message in the terminal:
$ scilab
Could not access to the Main Scilab Class:
Exception in thread "main" java.lang.
at org.scilab.
at org.scilab.
at org.scilab.
Caused by: java.lang.
at java.lang.
at java.lang.
at java.lang.
at org.scilab.
... 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).
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: scilab 5.5.2-2ubuntu3
ProcVersionSign
Uname: Linux 4.4.0-174-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.21
Architecture: amd64
CurrentDesktop: MATE
Date: Tue Feb 18 12:25:50 2020
InstallationDate: Installed on 2019-05-07 (287 days ago)
InstallationMedia: Ubuntu-MATE 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitec
SourcePackage: scilab
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in openjdk-8 (Ubuntu): | |
status: | New → Fix Released |
Changed in scilab (Ubuntu): | |
status: | New → Fix Released |
Installing OpenJDK from main fixes the issue:
``` 8-jre:amd64= 8u77-b03- 3ubuntu3 openjdk- 8-jre-headless: amd64=8u77- b03-3ubuntu3
sudo apt-get install openjdk-
cat <<EOF | sudo tee /etc/apt/ preferences. d/pin-java- scilab
Package: openjdk-8-jre:amd64
Pin: version 8u77-b03-3ubuntu3
Pin-Priority: 1337
Package: openjdk- 8-jre-headless: amd64
Pin: version 8u77-b03-3ubuntu3
Pin-Priority: 1337
EOF
```
So new OpenJDK breaks Scilab.