OBS: download the application please visit www.mrbool.com/player
Title: Java Eclipse-Calling a C function from within a Java file
Duration: 17.14 minutes
Summary: In this video, I demonstrated how we can call a C function from within a Java file. First, we compiled the java code and used javah to produce the header file. We copied the function header to WelcomeNative.c and wrote the body of the function. Then, we used the cl Microsoft compiler to generate WelcomeNative.dll. Finally, we created a Java test file that load the dll and calls the Welcome() function.
Methodology of the development of example:: Using existing and tested code (code reuse). Calling Native libraries.
Technology Used: Java Native Interface
Key words: C, Java, JNI, DLL, javah, cl Microsoft compiler.