char * str; str=(char*)(*env)->GetStringUTFChars(env,s,NULL); (*env)->ReleaseStringUTFChars(env, s, str);