File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NewStringUTF() stripps long string from C to Java

Mani Venkata Kanth
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am new to JNI & reverse JNI.

I have prepared a long string which is of more than 10 thousand characters. I wanted to set this to the Java string. I am using below code snippet.

string temp="....................";
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.
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic