Register / Login
Win a copy of
The Java Performance Companion
this week in the
NewStringUTF() stripps long string from C to Java
Mani Venkata Kanth
posted 4 years ago
I am new to JNI & reverse JNI.
I have prepared a long
which is of more than 10 thousand characters. I wanted to set this to the
string. I am using below code snippet.
jstring temp2 = env->NewStringUTF(temp);
And I am setting this temp2 value to java variable using reverse JNI.
The string i get in Java is only the some part of the string. Hence, missing the complete string.
Please help me out...
Thanks in advance.
Undefined Reference Trying to invoke Java from C++
Reverse an array in java
how to convert static String return into JNI
Swing GUI crashes (using JNI)