Skip to content
Kristoffer Sjögren edited this page Sep 4, 2015 · 2 revisions

Who's using LMDB for Java?

See #39

Android studio

  1. Choose an emulator using armeabi-v7a ABI.
  2. Put liblmdbjni.so from lmdbjni-android-${version}.jar in src/main/jniLibs/armeabi
  3. Load library before opening environment and database.
System.loadLibrary("lmdbjni");
// use a writable directory
android.content.Context ctx = getApplicationContext();
File dir = ctx.getFilesDir();
Env env = new Env();
env.open(dir.getAbsolutePath());
Database db = env.openDatabase();
Clone this wiki locally