pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/55758: OpenJDK11 does not work after installation



The following reply was made to PR pkg/55758; it has been noted by GNATS.

From: ts1000 <ts1000%rad2know.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/55758: OpenJDK11 does not work after installation
Date: Sun, 01 Nov 2020 16:26:49 -0500

 I found a workaround:
 
 
 -- script start --
 # ts1000: workaround to fix cacert store for OpenJDK 11 on NetBSD 9.1
 # this workaround just reimports existing certificates in 
 $JAVA_HOME/lib/security/cacerts
 # into a JKS format store, and then just replaces the cacerts with the 
 JKS version
 
 # must be done as root
 # also assuming keytool is in the $PATH
 # that is:  we have export JAVA_HOME=/usr/pkg/java/openjdk11
 # and export PATH=${PATH}:${JAVA_HOME}/bin
 
 cd /usr/pkg/java/openjdk11/lib/security
 keytool -importkeystore -srckeystore 
 /usr/pkg/java/openjdk11/lib/security/cacerts    -destkeystore 
 /usr/pkg/java/openjdkmv cacerts cacerts.org
 ln -s cacerts.jks cacerts
 
 
 
 -- script end --
 
 Similar problem was with Docker. So picked up a solution from there
 
 https://github.com/docker-library/openjdk/pull/263/files
 


Home | Main Index | Thread Index | Old Index