Where are the values of java.library.path being set?
- by lmestre
This one could be a WebLogic Server question, but this post is general for any java environment.We were getting at the very beginning java library path something like this:
/home/lmestre/jdk1.6/jre/lib/amd64/server:/home/lmestre/jdk1.6/jre/lib/amd64:/home/lmestre/jdk1.6/jre/../lib/amd64So, the question was:
Where WebLogic Server is setting java.library.path?I never found the answer, so why don't we try to try to answerWhere the JVM is setting java.library.path?public class LibraryPathPrinter { public static void main(String[] args) { String javaLibraryPath= System.getProperty("java.library.path"); System.out.println("java.library.path "+javaLibraryPath ); }}after a simplejavac LibraryPathPrinter.javaand then an easyjava LibraryPathPrintervoila!The program printed something like thisjava.library.path /home/lmestre/jdk1.6/jre/lib/amd64/server:/home/lmestre/jdk1.6/jre/lib/amd64:/home/lmestre/jdk1.6/jre/../lib/amd64So the JVM was the culprit.Enjoy!