Skip to content

Instantly share code, notes, and snippets.

@shuson
Last active February 17, 2018 07:20
Show Gist options
  • Save shuson/72468487c2c113516a1cb60626cbb60b to your computer and use it in GitHub Desktop.
Save shuson/72468487c2c113516a1cb60626cbb60b to your computer and use it in GitHub Desktop.
Load CLIPJNI.jnilib for Mac OS in Eclipse IDE

A basic rule is "JNI libraries are named with the library name used in the System.loadLibrary() method of your Java code, prefixed by lib and suffixed with .jnilib." refs

Use System.out.println(System.getProperty("java.library.path"));, print your java.library.path, and put the CLIPSJNI.jnilib to one of the dirs, for example "/Users/xxx/Library/Java/Extensions/" and rename it as libCLIPSJNI.jnilib

Now you can use System.loadLibrary("CLIPSJNI") to get it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment