On the command got up to compiling the HelloWorld.c code.
cl -Ic:\java\include -Ic:\java\include\win32 -MD -LD HelloWorld.c -FeHelloWorld.dll
and get this error:
HelloWorld.c
HelloWorld.c(1) : fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
I have included in the path C:\Program Files\Java\jdk1.7.0\include where jni.h is located
PATH=C:\Windows\system32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Program Files\Java\jdk1.7.0\bin;
C:\Program Files\Java\jdk1.7.0\include;
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin;
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
(the path is all one line)
With cbpporter's MyApps.rar I get the same error when running in theIDE:
C:\MyApps\jni\main.cpp(2) : fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
How do I get the jni.h seen in theIDE (or on the command line)?