AnsweredAssumed Answered

java.lang.UnsatisfiedLinkError: MapRClient.dll: Can't find dependent libraries

Question asked by matroyd on Jul 9, 2012
Latest reply on Jul 10, 2012 by Ted Dunning
We are running a Java program using HDFS API on Windows XP(32-bit) to access MapR. The vm arguments for the program are:
    -Djava.library.path="C:\dev\jdk1.6.0_20\jre\bin\server;C:\dev\jdk1.6.0_20\jre\bin;C:\dev\mapr-win\hadoop\hadoop-0.20.2\lib\native\Windows_7-x86-32;C:\WINNT\system32"

depends.exe on the MapRClient.dll shows red for:

    c:\winnt\system32\WS2_32.DLL and c:\winnt\system32\KERNEL32.DLL

Getting following exception:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\dev\mapr-win\hadoop\hadoop-0.20.2\lib\native\Windows_7-x86-32\MapRClient.dll: Can't find dependent libraries
     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     at java.lang.ClassLoader.loadLibrary0(Unknown Source)
     at java.lang.ClassLoader.loadLibrary(Unknown Source)
     at java.lang.Runtime.loadLibrary0(Unknown Source)
     at java.lang.System.loadLibrary(Unknown Source)
     at com.mapr.fs.MapRFileSystem.<clinit>(MapRFileSystem.java:1019)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Unknown Source)
     at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1028)
     at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1079)
     at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1531)
     at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:69)
     at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:1571)
     at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1553)
     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:232)
     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:115)






Outcomes