cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Am I able to call the main function in s
Am I able to call the main function in shared library without executable on Linux?
Jul 20, 2016 at 3:30pm UTC
wrightpt
(20)
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
Jul 20, 2016 at 3:40pm UTC
wrightpt
(20)
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
Jul 20, 2016 at 7:41pm UTC
PanGalactic
(1658)
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.