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

[macosx] Can't find native libraries with .jnilib in Web Start apps

XMLWordPrintable

    • b34
    • x86
    • os_x
    • Verified

        Beginning with 7u4, .dylib is the correct extension for native libraries, but many Mac OS X-based Web Start apps and signed applets still use the old but equally valid .jnilib.

        JNLPClassLoader and its variants now assume that native libraries will be named .dylib on mac OS X in findLibrary() when searching for them in the cached resources, so apps that call System.loadLibrary("xxx") will now fail if the library 'xxx' is named libxxx.jnilib.

        JNLPClassLoader, JNLP2ClassLoader and JNLPPreVerifyClassLoader all need to look for both dylib and jnilib on Mac OS X. Also, Platform defines two methods for the prefix and suffix of native libraries, but instead we should just use System.mapLibraryName() to return the proper name instead of doing it ourselves.

              skovatch Scott Kovatch (Inactive)
              skovatch Scott Kovatch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: