Am I able to call the main function in shared library without executable on Linux?

This may be obvious to many but I a using a new framework that has a .so file and it is used by an executable. However, I would like to call it using the JNI, Java Native Interface.

Thank you

I am actually using this for Android, which is not completely linux but I know uses the linux kernel. which not sure if this matters
The answer is "yes" but the mechanics of how to do that via JNI is a Java question and a bit off topic for this forum.
Topic archived. No new replies allowed.