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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

fatal error C1083: Cannot open include file: 'jni.h'

843829Apr 16 2002 — edited Sep 25 2008
Hi
I am getting the above error when i try to compile the C source code.

I used javah -jni to compile the header and that seems to work.

I read a previous topic and changed the 'include' to the exact directory e.g.
#include <jni.h> changed to #include "C:\Program Files\jdk1.2.2\include\jni.h"

When I do this it says can't find jni_md.h so I put in the full path for this one too.

When I recompile it it seems to work but the environment (MicroSoft Visual C++) says the ".h" has been altered and reloads it without the paths I just put in.

What can I do?

Martin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2008
Added on Apr 16 2002
4 comments
1,554 views