Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8156903

Add jlink option to choose which VMs (Client and/or Server) to include

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 9
    • tools
    • x86
    • windows_7

      A DESCRIPTION OF THE REQUEST :
      When building a 32-bit JVM, jlink includes both the Client and Server VMs in the output. This is wasteful since any particular packaged application will typically use only one or the other. A "minimal" JVM with options "--strip-debug --compress=2 --addmods java.base" is 21 MB. Despite all the work put into the module system and the fancy compression that jlink does, one third of that output is completely superfluous if you don't know about or use the Server VM. I figured out that it can be stripped manually by deleting "bin/server", "lib/server", and the "-server KNOWN" entry from "lib/i386/jvm.cfg", but this would be easier and much more discoverable if there were a command-line option to choose exactly which VM(s) to include.

      JUSTIFICATION :
      .


            jlaskey Jim Laskey
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: