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 char from native Method as bytearray

843829Apr 21 2004 — edited Apr 21 2004
Hello everyone.

First of all, i must admit that i am quite new to using JNI.
I got the following problem:

(I don't want to use GL4Java or something similar, just do this little thing)
I am reading pixels into a *char in c++ using glReadPixels. Now i want to return this to Java as a bytearray, where i want to go on working with this array.

I guess this should be quite a simple task, but spend quite a lot of time to figure it out, but its no use.

Thank you all in advance,
Chris
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2004
Added on Apr 21 2004
8 comments
1,379 views