hello guys
please help i link this link java-tips.org/other-api-tips/jni/simple-example-of-using-the-java-native-interface.html and i fallow the steps but i have a big problem i dont know how to compile c file it says that to compile c file this is the syntax "cl -Ic:\java\include -Ic:\java\include\win32 -MD -LD HelloWorld.c -FeHelloWorld.dll" but it does not work.
or may be it because i don't modify the syntax to compile c file please help how to modify "cl -Ic:\java\include -Ic:\java\include\win32 -MD -LD HelloWorld.c -FeHelloWorld.dll".
I'm using netbeans 6.7.1 and jdk1.6.0_21
C:\Program Files\Java\jdk1.6.0_21\include
C:\Program Files\Java\jdk1.6.0_21\include\win32
i hava a file
1)HelloWorld.java
2)HelloWorld.class
3)HelloWorld.h //where should i put this file? and what should i do to this file?
4)HelloWorld.c //where should i put this file? and what should i do to this file?
please help i link this link java-tips.org/other-api-tips/jni/simple-example-of-using-the-java-native-interface.html and i fallow the steps but i have a big problem i dont know how to compile c file it says that to compile c file this is the syntax "cl -Ic:\java\include -Ic:\java\include\win32 -MD -LD HelloWorld.c -FeHelloWorld.dll" but it does not work.
or may be it because i don't modify the syntax to compile c file please help how to modify "cl -Ic:\java\include -Ic:\java\include\win32 -MD -LD HelloWorld.c -FeHelloWorld.dll".
I'm using netbeans 6.7.1 and jdk1.6.0_21
C:\Program Files\Java\jdk1.6.0_21\include
C:\Program Files\Java\jdk1.6.0_21\include\win32
i hava a file
1)HelloWorld.java
2)HelloWorld.class
3)HelloWorld.h //where should i put this file? and what should i do to this file?
4)HelloWorld.c //where should i put this file? and what should i do to this file?