recipe No. 001

calling C code from Java

Where you learn basics of JNI

Whenever you plan to call some C code from Java, you have to make sure to provide three components: Java class that exposes native method, C code that you want to call, shared library that was built using C code. Once you have all of these, you can call native code directly from JVM. If you want to visualise the way the whole chain of calls looks like, you can visualise it in a sort of a following way.

mixture proportions