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

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top