Rob Prime wrote:You need to put quotes around your include path, because the command line shell now sees it as two different arguments. Try one of the following:
"-IC:\Program Files\Java\jdk1.6.0_10\include"
-I"C:\Program Files\Java\jdk1.6.0_10\include"
I think it should be the first one but I haven't tried it out.
Hi Rob, Thanks, It works and the dll file is created in accompany with some other files like filename.exp, filename.obj, and etc. but while using it in my app I face this message:
java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.6.0_10\include\HelloWorld..dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at HelloWorld.<clinit>(HelloWorld.java:19)
a message appears and the exception is thrown:
Exception in
thread "main"
what are dependent libraries?