15 package com.cloudera.impala.util;
26 boolean found =
false;
27 String javaLibPath = System.getProperty(
"java.library.path");
28 for (String
path: javaLibPath.split(
":")) {
29 File libFile =
new File(
path + File.separator + libFileName);
30 if (libFile.exists()) {
31 System.load(libFile.getPath());
37 throw new RuntimeException(
"Failed to load " + libFileName +
" from any " +
38 "location in java.library.path (" + javaLibPath +
").");
static void loadLibrary(String libFileName)
string path("/usr/lib/sasl2:/usr/lib64/sasl2:/usr/local/lib/sasl2:/usr/lib/x86_64-linux-gnu/sasl2")