hi,
i've created jni for a c++ program.
i wanted to call the c++ method in
java and called it succesfully( i mean i have created a .h file which has the c++ header like JNIEXPORT etc.,)
i replaced the header or what ever is present in .h file created by java -jni <file name> in c++
but i get following error
i get the first error when i replace the method declaration with the following,
JNIEXPORT void JNICALL Java_phone_pjstart (JNIEnv *env, jobject ob)
and in the main method i call it as obj.pjstart()
i get the second error when in main method i put
obj.Java_phone_pjstart()
remember obj is the object of main class and not that is in (JNIEnv *env, jobject ob)
any suggestions
thanks in advance