Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Maximal size of a String that can be passed via JNI.

843829Apr 19 2002 — edited Apr 22 2002
Hello all,

I have the following question. Is there any limit of the size of a String that I can pass as a paramether of a native function? I have for example:

public native void createFactory(String factory);

So the question is how big this String factory can be? 100kB, 2MB or what? Theoretically I know that I can have as big String as I want, but in reality JVM defines some limitat about the size of the String. So is this limit the same for JNI.

Thank you in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2002
Added on Apr 19 2002
3 comments
912 views