From 5929ac8834c4ed85a3af9f8128b7c8baaf3a2796 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Fri, 13 Dec 2019 16:11:40 -0800 Subject: [PATCH] Env should also load the native library (#6167) Summary: Closes https://github.com/facebook/rocksdb/issues/6118 Pull Request resolved: https://github.com/facebook/rocksdb/pull/6167 Differential Revision: D19053577 Pulled By: pdillinger fbshipit-source-id: 86aca9a5bec0947a641649b515da17b3cb12bdde --- java/src/main/java/org/rocksdb/Env.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/src/main/java/org/rocksdb/Env.java b/java/src/main/java/org/rocksdb/Env.java index d7658f239..1c53b5998 100644 --- a/java/src/main/java/org/rocksdb/Env.java +++ b/java/src/main/java/org/rocksdb/Env.java @@ -13,6 +13,10 @@ import java.util.List; */ public abstract class Env extends RocksObject { + static { + RocksDB.loadLibrary(); + } + private static final Env DEFAULT_ENV = new RocksEnv(getDefaultEnvInternal()); static { /**