openjdk-9-jre-headless jexec points to wrong location for jre

Bug #1744380 reported by Ian Robertson on 2018-01-19
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-9 (Ubuntu)
Undecided
Unassigned

Bug Description

This issue affects Ubuntu 16.04.3, specifically the openjdk-9-jre-headless:amd64 package, version 9~b114-0ubuntu1.

jexec, in the openjdk-9-jre-headless:amd64 package, is a tool used for launching jars by calling java. However, running jexec against a jar results in:

can't locate java: No such file or directory

Currently, /usr/lib/jvm/java-9-openjdk-amd64/lib/jexec appears to want to access /usr/lib/jvm/java-9-openjdk-amd64/jre/lib/jexec (based on running "strings jexec"). However, there is no /usr/lib/jvm/java-9-openjdk-amd64/jre directory. Running strace on jexec shows this:

lstat("/usr/lib/jvm/java-9-openjdk-amd64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/lib/jvm/java-9-openjdk-amd64/jre", 0x7fffcafd9bc0) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
brk(NULL) = 0x95a000
brk(0x97b000) = 0x97b000
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
write(3, "can't locate java: No such file "..., 45can't locate java: No such file or directory
) = 45
close(3) = 0
exit_group(1) = ?
+++ exited with 1 +++

Creating the directory /usr/lib/jvm/java-9-openjdk-amd64/jre/lib/, and placing in it a link to /usr/lib/jvm/java-9-openjdk-amd64/lib/jexec, allows jexec to function properly.

tags: added: xenial
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openjdk-9 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers