本文介绍了如何在Java中使用Linux共享库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从Java代码中调用so库中的函数?通常,可以在Java程序中使用Linux so库吗?

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?

推荐答案

答案是"JNI":)

以下是几个链接:

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/

这篇关于如何在Java中使用Linux共享库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 03:34
查看更多