Class JNILibrary

  • All Implemented Interfaces:
    java.lang.Comparable<JNILibrary>

    public class JNILibrary
    extends java.lang.Object
    implements java.lang.Comparable<JNILibrary>
    • Constructor Detail

      • JNILibrary

        public JNILibrary​(java.lang.String name,
                          java.lang.Long version)
    • Method Detail

      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • load

        public static void load​(java.lang.String appname,
                                JNILibrary library)
        Load the given library into the given application. This method first searches in the classpath for native libraries that are bundled in there, and only if no matches are found, will it search the run-time paths of each OS.
        Parameters:
        appname - the name of the application. This should match what shows up in jar manifests or avpkit native property files.
        library - the library object
        Throws:
        java.lang.UnsatisfiedLinkError - if library cannot be loaded.