Acessing the JNI.dll directly from CLR

41 views
Skip to first unread message

LordChariot

unread,
Sep 7, 2010, 4:35:37 PM9/7/10
to jni4net
I need some advice on the best way to approach this task:

I have a vendor-supplied JNI DLL that designed to be used by a Java
program. This JNI SDK contains functions I need access to via an
application in C#. I do not need to access any java components that
call this JNI, I only need to get to the API the JNI provides, so I
don't need to bridge back into the java.

I have the entry points and definitions of how a Java program would
access these functions, but need to figure out how to get to them from
C#.

I've been trying create an interop wrapper class to be called from C#,
but it's providing a challenge with how parameters are passed, and
frankly, I'm not that good.

Would jni4net help in easily exposing the methods already in the jni?

Pavel Šavara

unread,
Sep 7, 2010, 4:47:26 PM9/7/10
to jni...@googlegroups.com
If you need jni.h translated to C#, then
see net.sf.jni4net.jni.JNIEnv class on C# side.

jni4net does more than that, but I'm not sure how it fits with the DLL you have.

Cheers
Pavel

> --
> You received this message because you are subscribed to jni...@googlegroups.com
> http://groups.google.com/group/jni4net?hl=en-GB?hl=en-GB
> http://jni4net.sf.net/
>

Reply all
Reply to author
Forward
0 new messages