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!

DLL to JNI

843829Jan 18 2002 — edited Jan 22 2002
I have a DLL writen in C++ and I want to expose this classes and methodes in DLL to Java. If we want to go through JNI, what is the best way to do this?
All the tutorial is writing Java class and generate header file (.h) for C++. So do I have to duplicate all C++ class in Java class. How does object reference been handled between Java and c++? I am very new to this, so any suggestion will be greatly appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2002
Added on Jan 18 2002
8 comments
358 views