Jump to content
Excelsior Forums
smmr

Registering Native Methods

Recommended Posts

Hi,

I'm evaluating xFunction and I?m using it to invoke a function that resides in a DLL. Looking at the examples, it was very easy to do that.

The problem is that the function invokes the [JNI] [tt]RegisterNatives[/tt] function. That function receives, as parameter, a [tt]JNIEnv[/tt] pointer.

If I was to use the [tt]JNI_OnLoad[/tt] function, the function would automatically receive it from the JVM. So my question is: does xFunction provides a mean to get a [tt]JNIEnv[/tt] pointer? Or is there a way in JAVA to generate such a pointer?

Thank you,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×