0

how to develop a native application in windows environment ?

17th Jul 2016, 1:51 PM
Snigdha Pradhan
Snigdha Pradhan - avatar
1 Antwort
+ 3
first you create a class with a native function definition: public native function(); than compile the Java file and use the javah command, it will generate and H (header) file for you, in the header you will find definition for you native functions, simple implement than in a C/CPP file. after you are done compile it to a DLL and use the System.loadLibrary("dll_name"); this is a quick explanation, to find out more in depth tutorial search Google for JNI tutorials :)
17th Jul 2016, 7:11 PM
Itay Almog
Itay Almog - avatar