JNI Dynamic Linking

Dynamic linking is done “automagically” as long as the names of the methods in the library follow a fixed template.

  • The library is loaded into the JVM and the methods are linked automatically.

  • Implies that symbols are present in the library (not stripped).

Assuming that our "hello world" app had a class named Worker, loading a method named doWork, the method in the function would be named:

Last updated