Description: Interacting With C From Java With JNI: Part 1/2
JNI allows us to write some code in C/C++ and then talk to that code through Java. In part one of this two part article, Neville introduces us to the concepts behind JNI with a simple example in C.Platform independence is one of the most common buzzwords in the industry today. Everybody wants flexibility. Everybody wants to program in his or her favorite programming language. Sometimes of course it's not a matter of choice, as some components of an application have to be programmed in a completely different language for whatsoever reason. Well, in Java we have JNI as a solution. Let me tell you in short what we can do using the JNI. Basically we can write code in other native programming languages (like C and C++) and use that same code in our java file.