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

Provide a means to include native libraries in the packager

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: tbd_major
    • Component/s: deploy
    • Labels:

      Description

      Currently there is no way to include a native library (DLL, dylib, so) in the packager contents and have it automatically accessible via the loadLibrary call. Including it with the other resources packages the DLL but does not add it to the library path. The user can sniff out URLs via the JarClassLoader and add that path, but it's an unsupported hack (that I wouldn't be suprised if it disappears in a security update).

      I immediately see two possible approaches, (a) include the app dir in the library path, or (b) have a separate enumeration of files that are native libraries and include those in some other directory or in the same directory as the JVM dlls. There may be others.

        Attachments

          Activity

            People

            Assignee:
            cbensen Chris Bensen (Inactive)
            Reporter:
            shemnon Danno Ferrin (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: