JNI: Converting char* to jstring
Hello all, i was wondering if there is another alternative to env->NewStringUTF(ajstring);in converting char* to jstring as NewStringUTF causes my app to crash.thanks
[197 byte] By [
Aldricha] at [2007-11-27 3:42:05]

Have you tried debugging the application to see why exactly that method is crashing?Finding alternatives is not a solution, there is a problem here that you need to figure out. Are you sure env is valid? Are you sure ajstring is a valid string (null-terminated for example)?