I'm just wondering how, exactly, does Java go about deciding the default value for its java.library.path
property?
I am running a *buntu 14.04 64 bit, and it defaults to (the first two don't exist):
/usr/java/packages/lib/amd64
/usr/lib64
/lib64
/lib
/usr/lib
Searching through my environmental variables, I have found that nothing has these in it. Setting LD_LIBRARY_PATH
does prepend its contents to this list.
Given this information, I am assuming that this list is just explicitly set (hard-coded) into Java, but I can't find any documentation on it. Is my assumption correct? What are its default values for different OSs? Will these values change across distributions?
I'm asking for two reasons. 1) I'm just curious. 2) I want to know where I can put a library so that Java will always find it.