I know that JVM use the java.library.path
property to locate the native libraries at run time. I am trying to configure Eclipse with the native dependency location.
But there are many places in Eclipse->Project Properties->Build Path
I can specify the location.
- The Source tab -> Native library location
- The Libraries tab -> JRE System Library -> Native library location.
- And for each external jars, there's a Native library location entry.
As I tried, it seems no matter where I configure it, it is always put in the java.library.path
before my application starts.
Which one should I use?
If they all goes to the same destination, why so many config entries?
So far, my guess is, the designer of Eclipse hope this way can help programmers organize their native libraries more logically.