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

  • Thread starter Thread starter TsanChung
  • Start date Start date
T

TsanChung

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

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) 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.
 
Back
Top