Maximal size of a String that can be passed via JNI.
843829Apr 19 2002 — edited Apr 22 2002Hello 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.