Jump to content

'jni.h': No such file or directory when compiling a cpp program

Featured Replies

Posted

:\win5\scripts>nmake -f x86-win32.makefile jsp

 

Microsoft ® Program Maintenance Utility Version 6.00.8168.0

Copyright © Microsoft Corp 1988-1998. All rights reserved.

cd ..\JavaSP\HwAPI

msdev HwAPI.dsp /MAKE "HwAPI - Win32 Release" /NORECURSE

--------------------Configuration: HwAPI - Win32

Release--------------------

Compiling...

HwAPI.cpp

C:\win5\JavaSP\HwAPI\HwAPI.cpp(1) : fatal error C1083: Cannot open

include file:

'jni.h': No such file or directory

 

jni.h is at C:\Program Files\Java\jdk1.6.0_06\include

 

I try to add the include path as follows but compile still fail.

 

C:\win5\scripts>

set INCLUDE=%INCLUDE%C:\Program Files\Java\jdk1.6.0_06\include

set INCLUDE=%INCLUDE%C:\"Program Files"\Java\jdk1.6.0_06\include

set INCLUDE=%INCLUDE%"C:\Program Files\Java\jdk1.6.0_06\include"

 

The windows ver is win 2000.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...