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!

JNI : problems with C++ and stubs...

843829Jul 19 2002 — edited Jul 20 2002


Hi,
I m learning how to deal with C++ objects within a java project,
I m using J2SESDK 1.4..
in all the tutorials I ve found about it, I have to use javah with the option "-stubs" but when I do so , I get the error:
"E:\javah -stubs Test
Error: JNI does not require stubs, please refer tothe JNI documentation."

and in the headers from the tutorial , there is an #include <StubPreamble.h>
and "<StubPreamble.h> is part of the JDK, and includes a number of important system declarations.
Well, I don't have it in my latest 1.4 SDK.....

Is there anybody who could help me or give me some links to good tutorials???( the one from java.sun is extremly brief about the C++ point...)

Thanx by advance

Kymil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2002
Added on Jul 19 2002
2 comments
309 views