← Back to team overview

openjdk team mailing list archive

[Bug 1744380] Re: openjdk-9-jre-headless jexec points to wrong location for jre

 

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

** Changed in: openjdk-9 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-9 in Ubuntu.
https://bugs.launchpad.net/bugs/1744380

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

Status in openjdk-9 package in Ubuntu:
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1744380/+subscriptions


References