System.loadLibrary("firstJNI") //This is firstJNI.DLL The DLL we are going to use is firstJNI.DLL This DLL can be generated by VC++ or borland. ![]() Private native String getLine(String prompt) You want Java should interact with some low level programming language.īelow is given Simple Example See that methods have 'native' KeyWord: public native void displayHelloWorld().You have some library application written in other language and you want to use it in your java application. ![]()
0 Comments
Leave a Reply. |