I am using JNI to allow C code to offload some work best done in Java. In this question I was trying to link the libjvm and libjli libraries for my code to work, but now I'm questioning whether I even need the JLI library.
I cannot find any documentation that clearly states what the purpose of the JLI library is.
This other SO question hints at JLI being some OSX passthrough library:
#elif defined(__APPLE__)
// jli needs to be loaded on OSX because otherwise the OS tries to run the system Java
As does this blog:
When compiling on OS X it’s very important to link the jli library before the jvm library
My questions:
- What is the JLI library for?
- Do I need it for C/Java JNI development in RedHat/CentOS-only environments (no OSX)?