Jump to content

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


Recommended Posts

Guest TsanChung
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.

  • Replies 0
  • Created
  • Last Reply

Popular Days


×
×
  • Create New...