scilab fails to start missing java-8-oracle

Bug #1834265 reported by Mark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scilab (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This is for updated Ubuntu 18.04,

I have installed scilab package,

Problem: hardcoded java-8-oracle somewhere, installation goes ok, when I run scilab
```
$ scilab
Cannot find /usr/lib/jvm/java-8-oracle/bin/java
```

I have only openjdk-11-jre (which is Bionic default) installed.

Workaround:
add symlink to default-java
```
cd /usr/lib/jvm
/usr/lib/jvm# ln -s default-java java-8-oracle
```

Correct fix:
in scripts use default-java instead of java-8-oracle.

Sorry, I was not able to find which line is failing with the hardcoded path.

Thank you,
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: KDE
DistroRelease: KDE neon 18.04
InstallationDate: Installed on 2012-12-23 (2380 days ago)
InstallationMedia: Kubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
Package: scilab 6.0.1-7ubuntu1~18.04.1 [origin: Ubuntu]
PackageArchitecture: all
ProcVersionSignature: Ubuntu 5.0.0-20.21~18.04.1-generic 5.0.8
Tags: third-party-packages bionic wayland-session
Uname: Linux 5.0.0-20-generic x86_64
UnreportableReason: Toto není oficiální KDE balík. Prosíme odstraňte všechny balíky třetích stran a zkuste to znovu.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm libvirtd lpadmin netdev plugdev sudo video
_MarkForUpload: True

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please run

$ apport-collect 1834265

After that please run the following commands and paste the output here:

 1. dpkg -l '*openjdk*' '*oracle*'
 2. update-java-alternatives -l
 3. java -version

Changed in scilab (Ubuntu):
status: New → Incomplete
Revision history for this message
Mark (markthecodehamster) wrote : Dependencies.txt

apport information

tags: added: apport-collected bionic third-party-packages wayland-session
description: updated
Revision history for this message
Mark (markthecodehamster) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Mark (markthecodehamster) wrote : ProcEnviron.txt

apport information

Revision history for this message
Mark (markthecodehamster) wrote :
Download full text (4.5 KiB)

$ LANG=C dpkg -l '*openjdk*' '*oracle*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================================-=========================-=========================-=======================================================================================
un openjdk-11-jdk-headless <none> <none> (no description available)
ii openjdk-11-jre:amd64 11.0.3+7-1ubuntu2~18.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-11-jre-headless:amd64 11.0.3+7-1ubuntu2~18.04.1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
un openjdk-6-jre <none> <none> (no description available)
un openjdk-6-jre-headless <none> <none> (no description available)
un openjdk-7-jdk <none> <none> (no description available)
un openjdk-7-jre <none> <none> (no description available)
un openjdk-7-jre-headless <none> <none> (no description available)
un openjdk-8-jdk <none> <none> (no description available)
un openjdk-8-jdk-headless <none> <none> (no description available)
un openjdk-8-jre <none> <none> (no description available)
rc openjdk-8-jre-headless:amd64 8u212-b03-0ubuntu1.18.04. amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
in openjdk-9-jdk:amd64 <none> amd64 (no description available)
rc openjdk-9-jre-headless:amd64 9~b114-0ubuntu1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
un oracle-java11-installer <none> <none> (no description available)
un oracle-java6-set-default <none> <none> (no description available)
un oracle-java7-bin <none> <none> (no description available)
un oracle-java7-fonts <none> <none> (no description available)
un oracle-java7-jdk <none> <none> (no description available)
un oracle-java7-jre <none> <none> (no description available)
un oracle-java7-plugin <none> <none> (...

Read more...

Revision history for this message
Mark (markthecodehamster) wrote :

$ LANG=C update-java-alternatives -l
java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64

Revision history for this message
Mark (markthecodehamster) wrote :

$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)

Revision history for this message
Mark (markthecodehamster) wrote :

H Tiago, I've updated the bug.

I also did:
apt purge .. to remove the rc statuses for java in command 1.
then apt remove --purge openjdk* scilab* //to start anew
When I install scilab, it pulls openjdk-11-jre but issue with oracle-java still remains

Thanks for looking into this!

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for scilab (Ubuntu) because there has been no activity for 60 days.]

Changed in scilab (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Mark (markthecodehamster) wrote :

The bug has been marked as expired due to no response from the maintainer, reopening as new.

Changed in scilab (Ubuntu):
status: Expired → New
Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Please run scilab with full debugging enabled and paste (or attach) the full output in this bug. In order to do so, run the following command in a terminal:

$ bash -x /usr/bin/scilab

Also, I noticed that your original report mentioned that you linked default-java to java-8-oracle. This should not be necessary as you have default-jre-headless installed and it should have created the /usr/lib/jvm/default-java by itself. So please check that /usr/lib/jvm/default-java is correctly linked to openjdk-11 directory - if it is not, please remove the manually created link and reinstall the default-jre-headless package.

$ ls -l /usr/lib/jvm/default-java
/usr/lib/jvm/default-java -> java-1.11.0-openjdk-amd64

And it should belong to default-jre-headless:

$ dpkg -S /usr/lib/jvm/default-java
default-jre-headless: /usr/lib/jvm/default-java

Changed in scilab (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for scilab (Ubuntu) because there has been no activity for 60 days.]

Changed in scilab (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.