Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Linux shared libraries in Java?

Is there any way to call the functions which are in a so library from my Java code? Generally, is it possible to use Linux so libraries in Java programs?

like image 294
moorara Avatar asked Nov 18 '12 18:11

moorara


1 Answers

The answer is "JNI" :)

Here are a couple of links:

  • How to compile dynamic library for a JNI application on linux?

  • http://learn-from-the-guru.blogspot.com/2007/12/java-native-interface-jni-tutorial-hell.html

  • http://docs.oracle.com/javase/6/docs/technotes/guides/jni/

like image 188
paulsm4 Avatar answered Oct 18 '22 08:10

paulsm4