fusesource / leveldbjni

A Java Native Interface to LevelDB
BSD 3-Clause "New" or "Revised" License
538 stars 144 forks source link

UnsatisfiedLinkError in window xp sp3 #59

Closed hao0111 closed 9 years ago

hao0111 commented 9 years ago

JniDBFactory.factory.open(dbPath, options);
my os is window xp sp3 version,Could U help me!!! i use leveldbjni-1.8.jar (maven leveldbjni-win32 ),it throw exception,as follow: Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no leveldbjni32-1.8 in java.library.path, no leveldbjni-1.8 in java.library.path, no leveldbjni in java.library.path, C:\Documents and Settings\Justic\Local Settings\Temp\leveldbjni-32-1-55597694747868012.8: 找不到指定的程序。] at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:182) at org.fusesource.hawtjni.runtime.Library.load(Library.java:140) at org.fusesource.leveldbjni.JniDBFactory.(JniDBFactory.java:48) at com.my.jar.one.leveldb.LevelHello.main(LevelHello.java:25)

How could i fix it!!! thank U for your help!!!!

davsclaus commented 9 years ago

You need to add native windows leveldb library to your java classpath.