I need to call a .net method residing inside a .dll file from my java program. I mean interoperability. anybody pls help me on this. I have tried some codes but have lots of issues.

Sample using loadLibrary( ) to call Native methods in Java

I tried this one.. But which tool I have to use for compiling the managed C++. If I use java some libraries wont support and if I use visual studio again some libraries are not supported that residing in java.

pls help me on this.

advance thanks..