← Back to team overview

openjdk team mailing list archive

[Bug 1449652] [NEW] jks-keystore doesn't work for all Java versions

 

Public bug reported:

The jks-keystore update hook is trying to find a directory to use as the
JAVA_HOME but doesn't look for all the possible/common locations.

for jvm in java-6-openjdk-$arch java-6-openjdk \
           java-7-openjdk-$arch java-7-openjdk java-6-sun; do
if [ -x /usr/lib/jvm/$jvm/bin/java ]; then
        break
fi
done

For example, this doesn't work with OpenJDK-8 (available in 14.10+ or
through PPAs for older releases).

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ca-certificates-java (not installed)
ProcVersionSignature: Ubuntu 3.13.0-51.84-generic 3.13.11-ckt18
Uname: Linux 3.13.0-51-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Apr 28 11:04:19 2015
InstallationDate: Installed on 2014-01-26 (456 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140124)
SourcePackage: ca-certificates-java
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ca-certificates-java (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to ca-certificates-java in Ubuntu.
https://bugs.launchpad.net/bugs/1449652

Title:
  jks-keystore doesn't work for all Java versions

Status in ca-certificates-java package in Ubuntu:
  New

Bug description:
  The jks-keystore update hook is trying to find a directory to use as
  the JAVA_HOME but doesn't look for all the possible/common locations.

  for jvm in java-6-openjdk-$arch java-6-openjdk \
             java-7-openjdk-$arch java-7-openjdk java-6-sun; do
  if [ -x /usr/lib/jvm/$jvm/bin/java ]; then
          break
  fi
  done

  For example, this doesn't work with OpenJDK-8 (available in 14.10+ or
  through PPAs for older releases).

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: ca-certificates-java (not installed)
  ProcVersionSignature: Ubuntu 3.13.0-51.84-generic 3.13.11-ckt18
  Uname: Linux 3.13.0-51-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.10
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Apr 28 11:04:19 2015
  InstallationDate: Installed on 2014-01-26 (456 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140124)
  SourcePackage: ca-certificates-java
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1449652/+subscriptions


Follow ups

References