Bug#825987: /usr/sbin/update-java-alternatives: doesn't detect openjdk-8 xjc
Jayen Ashar
j__n at yahoo.com
Wed Jun 1 07:10:34 UTC 2016
Package: java-common
Version: 0.57
Severity: minor
File: /usr/sbin/update-java-alternatives
Dear Maintainer,
* What led up to the situation?
found out my xjc had changed to openjdk 7's
* What exactly did you do (or not do) that was effective (or
ineffective)?
effective: update-alternatives --config xjc
ineffective: update-java-alternatives -s java-1.8.0-openjdk-i386 #actually made it worse
* What was the outcome of this action?
update-java-alternatives -s java-1.8.0-openjdk-i386 changed xjc to point at /usr/lib/jvm/java-7-openjdk-i386/bin/xjc
* What outcome did you expect instead?
update-java-alternatives -s java-1.8.0-openjdk-i386 should make xjc point at /usr/lib/jvm/java-8-openjdk-i386/bin/xjc
not sure why, but update-java-alternatives doesn't pick up every executable in java-1.8.0-openjdk-i386:
jayen at eeyore:~$ sudo update-alternatives --config xjc
There are 4 choices for the alternative xjc (providing /usr/bin/xjc).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-7-openjdk-i386/bin/xjc 1071 auto mode
1 /usr/lib/jvm/java-6-openjdk-i386/bin/xjc 1061 manual mode
2 /usr/lib/jvm/java-7-openjdk-i386/bin/xjc 1071 manual mode
3 /usr/lib/jvm/java-8-openjdk-i386/bin/xjc 1069 manual mode
4 /usr/lib/jvm/jdk-7-oracle-i586/bin/xjc 317 manual mode
Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/lib/jvm/java-8-openjdk-i386/bin/xjc to provide /usr/bin/xjc (xjc) in manual mode
jayen at eeyore:~$ sudo update-java-alternatives -v -l | grep xjc
listing java alternatives:
jdk xjc /usr/lib/jvm/java-6-openjdk-i386/bin/xjc
jdk xjc /usr/lib/jvm/java-7-openjdk-i386/bin/xjc
jdk xjc /usr/lib/jvm/java-6-sun/bin/xjc
jdk xjc /usr/lib/jvm/jdk-7-oracle-i586/bin/xjc
jayen at eeyore:~$ sudo update-java-alternatives -v -l | grep java-8
listing java alternatives:
hl rmid /usr/lib/jvm/java-8-openjdk-i386/jre/bin/rmid
hl java /usr/lib/jvm/java-8-openjdk-i386/jre/bin/java
hl keytool /usr/lib/jvm/java-8-openjdk-i386/jre/bin/keytool
hl jjs /usr/lib/jvm/java-8-openjdk-i386/jre/bin/jjs
hl pack200 /usr/lib/jvm/java-8-openjdk-i386/jre/bin/pack200
hl rmiregistry /usr/lib/jvm/java-8-openjdk-i386/jre/bin/rmiregistry
hl unpack200 /usr/lib/jvm/java-8-openjdk-i386/jre/bin/unpack200
hl orbd /usr/lib/jvm/java-8-openjdk-i386/jre/bin/orbd
hl servertool /usr/lib/jvm/java-8-openjdk-i386/jre/bin/servertool
hl tnameserv /usr/lib/jvm/java-8-openjdk-i386/jre/bin/tnameserv
hl jexec /usr/lib/jvm/java-8-openjdk-i386/jre/lib/jexec
jre policytool /usr/lib/jvm/java-8-openjdk-i386/jre/bin/policytool
jdk appletviewer /usr/lib/jvm/java-8-openjdk-i386/bin/appletviewer
jdk jconsole /usr/lib/jvm/java-8-openjdk-i386/bin/jconsole
plugin mozilla-javaplugin.so /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so
-- System Information:
Debian Release: 8.4
APT prefers stable
APT policy: (900, 'stable'), (800, 'testing'), (800, 'oldstable'), (700, 'unstable'), (600, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
java-common depends on no packages.
java-common recommends no packages.
Versions of packages java-common suggests:
ii default-jre 2:1.8-57
-- no debconf information
More information about the pkg-java-maintainers
mailing list