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

Create jpackage native library for windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • internal
    • internal
    • tools

    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

              almatvee Alexander Matveev
              herrick Andy Herrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: