Public bug reported:
Alternatives for jexec have been excluded from the latest version of
openjdk-8-jre-headless (8u402) and this causes update-java-alternatives
to throw the following error:
update-alternatives: error: alternative /usr/lib/jvm/java-8-openjdk-
amd64/jre/lib/jexec for jexec not registered; not setting
Solution:
Reference to jexec should be removed from
/usr/lib/jvm/.java-1.8.0-openjdk-amd64.jinfo since update-java-
alternatives uses this file to determine what alternatives to create.
Patch:
--- .java-1.8.0-openjdk-amd64.jinfo.backup 2024-02-27 15:08:05.000000000
+0100
+++ .java-1.8.0-openjdk-amd64.jinfo 2024-03-27 00:57:58.136594220 +0100
@@ -13,7 +13,6 @@
hl orbd /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/orbd
hl servertool /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/servertool
hl tnameserv /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/tnameserv
-hl jexec /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jexec
jre policytool /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/policytool
jdkhl jdeps /usr/lib/jvm/java-8-openjdk-amd64/bin/jdeps
jdkhl wsimport /usr/lib/jvm/java-8-openjdk-amd64/bin/wsimport
** Affects: openjdk-8 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2059181
Title:
update-java-alternatives show error with openjdk-8-jre-headless
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/2059181/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs