JNIEnv in C++
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shubhi_Shubhi
Posted On:   Wednesday, April 16, 2008 09:03 AM

Hello,

I have a DLL which has some native functions and makes use of those functions via JNI. I have done some changes in the native code of the DLL and intend to write a TestStub for it.

However, the DLL JNIEXPORT function requires arguments of type JNIEnv and JString. How to I create a JNIEnv in the C++ program. Will I have to create a JVM for it or something else. Please help me.

Regards
shubhi

Re: JNIEnv in C++

Posted By:   Anonymous  
Posted On:   Friday, May 9, 2008 01:47 AM

Hello subhi, according to your question i think u r not able to pass the JNIENv & Jstring parameter to ur function, so i will suggest just include jni.h header in your file, so that you can pass the argument and one more thing if you are using this dll for java programme then first creat header file for that. After creating header file, you will get function signature in that file, just use that signature in your c++ file. And you can have parameter like JString, jobject and many more.

Re: JNIEnv in C++

Posted By:   Anonymous  
Posted On:   Tuesday, April 29, 2008 05:47 AM

Please clarify what do you want to do?
About | Sitemap | Contact