I have developed a plugin for Eclipse which has to access native libraries.
Is it mandatory that the .so file resides in /usr/lib
for the plugin to access it? Unless it is present there, my plugin cannot access the methods within it. I need my plugin to access the .so within itself so that even when I deploy the plugin, it should work without any configuration changes. I have used System.loadLibrary()
to load the .so but even when I loaded the library using its full path in System.load()
, it didn't work unless I copy the .so file to /usr/lib
.
How can I make my plugin access it from its own source folder?