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!

returning byte array in JNI

843829Feb 24 2004 — edited Feb 27 2004
Hi,
I am trying to return an array of byte from JNI to java. I read the tutorial but i still find it hard to understand.
BYTE *encoded is the variable that has the contents to be sent back to java.
jbytearray jb=encoded;
ret jb;
This does not seem to reurn anything!! Please help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2004
Added on Feb 24 2004
2 comments
8,633 views