System.load("/Users/joe/chilkatJava/libchilkat.jnilib") This choice removes all uncertainty, but embeds a hard-coded path within your Java application. Call System.load to load the shared library from an explicitly specified absolute path. Specify the on the command line by using the -D option.Modify the LD_LIBRARY_PATH environment variable to include the directory where the shared library is located.Copy the shared library to one of the paths already listed in.jnilib from an explicitly specified absolute path. I will list them briefly here, followed by examples with more explanation below. There are several ways to make it possible for the Java runtime to find and load a native shared library (.jnilib) at runtime. How to Load a Java Native/Shared Library (.jnilib)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |