Java Native Access (JNA)

I’ve been meaning to write something about Java Native Access (JNA), but I’ve been too busy actually using it! According to the JNA site, “JNA provides Java programs easy access to native shared libraries.” Python folks have had the same functionality in ctypes for a while now.

I’ve been using JNA for about 9 months for code related to my master’s thesis. I’ve built Java code on top native libraries for BLAS (mostly Intel MKL for now), HDF, PRIMME and MATLAB.

JNA’s future is looking bright. It provides an easy-to-use alternative to JNI. The JNA maintainer, Timothy Wall, is extremely active on the mailing list. Even the JRuby folks are catching on.

One Response to “Java Native Access (JNA)”

  1. Sen Says:

    Hi,

    Thanks for the comments..

    will it support Linux libABC.so libraries..

    Is there any code snippet available for this ?

    thanks, Sen

Leave a Reply