JNI在不同平台上编译

时间:2012-04-04 20:15:08

标签: macos compiler-construction java-native-interface zeromq

我正在尝试编译0MQ java JNI绑定... 如果我在mac os x上编译jar,我可以将它复制到Linux发行版吗?

Download jzmq, the java JNI lib for zmq. Uncompress and cd into that dir, and build it:
./autogen.sh  
./configure  
make  
make install  
You'll end up with the zmq.jar in /usr/local/share/java/ and the native lib in /usr/local/lib

http://blog.pmorelli.com/getting-zeromq-and-jzmq-running-on-mac-os-x

1 个答案:

答案 0 :(得分:0)

您的问题不是很清楚,但JAR文件是可移植的:JNI库不是。