I\'ve written a lot of code in a C# library, which I now need to call from Java.
I saw it recommended on SO to use JNA, but I\'m having trouble even getting out of t
You won't be able to call directly into your C# code from Java. JNA will only be able to access a native library (C or C++). However you could enable COM Interop in your library and link the 2 together with a native wrapper. I.e. it would look some thing like:
Java --(JNA)--> C/C++ --(COM Interop)--> C#
There are a couple of alternatives: