wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes NewStringUTF() stripps long string from C to Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "NewStringUTF() stripps long string from C to Java" Watch "NewStringUTF() stripps long string from C to Java" New topic
Author

NewStringUTF() stripps long string from C to Java

Mani Venkata Kanth
Ranch Hand

Joined: Aug 21, 2006
Posts: 39
Hi,

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.
 
 
subject: NewStringUTF() stripps long string from C to Java
 
Similar Threads
Swing GUI crashes (using JNI)
Reverse an array in java
how to convert static String return into JNI
JNI
Undefined Reference Trying to invoke Java from C++