Monats-Archive: Januar 2011

Java interoperation with a Native DLL using JNA

Imagine you get a static link library (.lib file) whose functions need to be invoked from a Java application. You cannot link the library to your java program, but what you can do is to call functions from a dynamic link library (DLL). The term “DLL” does not imply a specific format and thus the…
Read more

Java interoperation with a .NET DLL using jni4net

Imagine, that your requirement is to use a DLL, that contains .NET components under Windows. Your first thought could be JNI, but calling .NET components requires much more glue code, than just calling the functions that the DLL exports. In our projects, we have made good experiences with a framework, that uses reflection to generate…
Read more