Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Java Compiler (Developer Tool APIs)
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Aug 3, 2010 2:55 PM by
Cannot open include file: 'jni.h'
Aug 3, 2010 7:46 AM
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
This content has been marked as final.
Show 1 reply
Re: Cannot open include file: 'jni.h'
Aug 3, 2010 2:55 PM
in response to
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