I am building a Java application that uses a shared library written in C++ and compiled for different operating systems. The problem is, that this shared library itself depe
On Windows, you can use LoadLibrary, and on Linux, dlopen. The APIs are extremely similar and can load a so/dll directly by providing the full path. That works if it is a run-time dependency (after loading, you "link" by calling GetProcAddress/dlsym.)