is it necessary to keep nativeString constant?
–
PrashamNov 15 '10 at 7:07

2

if you check the second link, the prototype of the function GetStringUTFChars is: const jbyte* GetStringUTFChars(JNIEnv *env, jstring string, jboolean *isCopy); so you don't really have a choise
–
Jason RogersNov 15 '10 at 7:26

1

Thanks it's worked. I accepted it as answer . And wanted to give you +2 votes for that. But It seems i have made a mistake by twice clicking up arrow. Thanks a lot anyway.
–
PrashamNov 15 '10 at 9:12

no problems, I'm getting to the end of my project with JNI but I know how much I struggled to start with
–
Jason RogersNov 15 '10 at 9:22