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!

Create an jobjectArray (JNI)??

843829Apr 30 2002 — edited May 1 2002
i want to create an jobjectArray in C++ and return it to the java - program!!!

this is my declaration in java:
public native String[] displayReadFile(char delimiter, String file);

and this in C++ created bei javah
JNIEXPORT jobjectArray JNICALL
Java_jnireadfile_JNIConn_displayReadFile (JNIEnv *env, jobject obj, jchar jdelimiter, jstring jfile)

how can i create in C++ a jobjectArray and write strings in this Array???
and return the jobjectArray??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2002
Added on Apr 30 2002
2 comments
3,453 views