I want to load my own native libraries in my java application. Those native libraries depend upon third-party libraries (which may or may not be present when my application
In other words, what you're trying to do isn't possible. You'll need to launch a new process with an updated LD_LIBRARY_PATH (e.g., use ProcessBuilder and update environment() to concatenate the necessary directory)