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!

Confuse with JNI calling my existing c++ dlls?

843829May 23 2004 — edited Jun 17 2004
Ok i already wrote a C++ dll and register it in my windows xp.

When i start to learn JNI, i see how it works. But i am confuse.

It seems, that i need to compile my java class, generate a header file, write the c/c++ code, and create a shared library.

I already had a c++ dll, why would i need to write those c/c++ code for and need to include the *.h file?

Are they suppose to be a separate c/c++ file from my existing c++ dll?

Thanks. Can anyone show me some lights please?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2004
Added on May 23 2004
3 comments
354 views