|
"Steffan, Otto (GE Consumer Finance)" wrote: > ... I have succeeded in getting JNIEnv_P pointer, > starting JVM, calling a couple of JNI procedures earlier... so some pure > RPG-JNI solution (if exists) would be very very recognized. > Otto, if you want to deal with the Java array directly, you will have to do as Michael suggested earlier and make the method call yourself using JNI directly. Your code will be very similar to the code in this section of Sun's JNI tutorial: http://java.sun.com/docs/books/tutorial/native1.1/implementing/array.html Something like this: ... call the method using JNI function CallObjectMethodA or CallStaticObjectMethodA theArray = CallObjectMethodA (JNIenv_p : more parms ); numelems = GetArrayLength(JNIenv_p : theArray); for i = 0 to numelems - 1; elem = GetObjectArrayElement(JNIenv_p : theArray : i); endfor;
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.