jni « string « Java Data Type Q&A





1. Passing string from Java into JNI    stackoverflow.com

I want to pass a string into the JNI I am writing which have to be assigned to a const char*. The below mentioned is how I have done it:

JNI...(...,jstring jstr...){

const char* ...

2. 09?30?ß#@÷g gets displayed when i had not passed this String    stackoverflow.com

I am trying to pass a String to a native c function but the String gets printed as 09?30?ß#@÷g for the String Type a String : . I don't know what ...

4. why my method can not receive the string from JNI    forums.oracle.com

for my BeatTrack method, I just need the filename, then it can run, if I comment the BeatTrack(filename);, then no problem, for the java calling, of course, my BeatTrack(const *char filename) has no problem, cause I have test it,, but I call this method in java, the error is as follows, Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing ...