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!

Can I instantiate a Java Object from within my C/C++ native Code in JNI

843829Mar 28 2007 — edited Mar 31 2007
Hi.
I am new to JNI.
I would want to know if it is legal and doable to create a
non-primitive Java Object (e.g. Date Object) inside my native code
and hand it back to the JVM, in case of JNI...?

An explanation with a reasoning would be great.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 28 2007
Added on Mar 28 2007
6 comments
390 views