title: How to use a Windows DLL with Java in Mac OS X?
body: <p>I have seen some Java projects using <code>taucs.dll</code>, <a href="http://www.tau.ac.il/~stoledo/taucs/" rel="nofollow">TAUCS</a>—a C library of sparse linear solvers, through JNI in Windows. I guess I can achieve the same in Mac OS X by compiling TAUCS into something like <code>libTaucs.jnilib</code>. I have access to the library's code but no idea how to compile it into a DLL, let alone a JNI library. So far I can compile only to a static library.</p>
  
  <p>Is there a way to convert a DLL to a JNI library for Mac? If I have to compile the code, how to do so? Will wrapping a static library in a dynamic library work with JNI, especially for TAUCS if anyone has an experience?</p>