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

Create jpackage native library for windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:

      Description

      There is no jni library for java jpackage code to call.
      As a result some operations are done by executing other commands that could be better accomplished in native code.
      1.) the jpackage executable itself is invoked with args --icon-swap and --version-swap to modify the launcher to have the proper icon and version. The code to handle this in jpackager should be moved to a new jpackage.dll and called directly.
      This will allow jpackage to be built identically as on linux and mac, with no additional code.
      2.) WinRegistry.readRegistry() executes "reg query <key>" to read a registry value. This could easily be implemented in jni function.

      Not sure if there is other code that could be better implemented in native code but at least these two cases.
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                almatvee Alexander Matveev
                Reporter:
                herrick Andy Herrick
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: