JDK-8226870 : OpenJDK 8u JRE contains clhsdb and hsdb launchers
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: openjdk8u212
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-06-27
  • Updated: 2019-09-14
  • Resolved: 2019-07-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjdk8u232 b01Fixed
Related Reports
Relates :  
Description
Since JDK-8059038 has been backported to JDK 8u, the j2re-image, has the following in folder 'bin':

$ ls bin/
clhsdb  hsdb  java  jjs  keytool  orbd  pack200  policytool  rmid  rmiregistry  servertool  tnameserv  unpack200

This is wrong, clhsdb and hsdb shouldn't be there for JRE as they don't work anyway:

$ ./bin/clhsdb 
Error: Could not find or load main class sun.jvm.hotspot.CLHSDB
$ ./bin/hsdb 
Error: Could not find or load main class sun.jvm.hotspot.HSDB

They rely on sa-jdi.jar, which isn't built for j2re-image. These launchers need to be filtered for the JRE case.
Comments
URL: https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/bc278b0ebfad User: andrew Date: 2019-07-30 13:53:14 +0000
30-07-2019

Updated approval label from jdk8u-fix-ok to jdk8u-fix-yes so as to not confuse filters.
04-07-2019

Fix Request (OpenJDK 8u): Please approve this fix to OpenJDK 8u. It removes broken launchers from the JRE image, and keeps them for the JDK image where they work properly. The patch has been reviewed by Aleksey Shipilev. RFR: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-June/009712.html webrev: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8226870/01/webrev/
27-06-2019

RFR: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-June/009712.html
27-06-2019

Before: $ ls j2sdk-image/bin/ appletviewer hsdb jarsigner javadoc java-rmi.cgi jdb jinfo jps jstack keytool pack200 rmid serialver unpack200 xjc clhsdb idlj java javah jcmd jdeps jjs jrunscript jstat native2ascii policytool rmiregistry servertool wsgen extcheck jar javac javap jconsole jhat jmap jsadebugd jstatd orbd rmic schemagen tnameserv wsimport $ ls j2re-image/bin/ clhsdb hsdb java jjs keytool orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200 After: $ ls j2sdk-image/bin/ appletviewer hsdb jarsigner javadoc java-rmi.cgi jdb jinfo jps jstack keytool pack200 rmid serialver unpack200 xjc clhsdb idlj java javah jcmd jdeps jjs jrunscript jstat native2ascii policytool rmiregistry servertool wsgen extcheck jar javac javap jconsole jhat jmap jsadebugd jstatd orbd rmic schemagen tnameserv wsimport $ ls j2re-image/bin/ java jjs keytool orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200
27-06-2019

Candidate webrev: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8226870/01/webrev/
27-06-2019