1 Reply Latest reply on Aug 3, 2010 7:55 PM by baftos

# Cannot open include file: 'jni.h'

Previously posted in JNI but was told that it is a compiler problem so here is the problem

I have been trying with no avail, to compile my c++ program with the path in visual express cmd, I have tried diff ways but still shows errors.

The following is the code that I am using

cl -I"c:\program files\java\jdk1.6.0_06\include" -I"c:\program files\java\jdk1.6.0_06\include\win32" -I"." -MT -LD HelloWorld.cpp -FeHelloDLL.dll

where my path is C:\Program Files\Java\jdk1.6.0_06\include

Thanks
• ###### 1. Re: Cannot open include file: 'jni.h'
This is a C++ compiler issue, not a Java compiler issue.
Nevertheless, can you post please the output of
``dir "c:\program files\java\jdk1.6.0_06\include" /s``
and your (probably short) HelloWorld.cpp?

Edited by: baftos on Aug 3, 2010 3:55 PM