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

Provide a means to include native libraries in the packager

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P3 P3
    • tbd
    • None
    • deploy

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: