You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public boolean init(Properties prop) {
boolean fail = false;
String csEnvironmentStr = prop.getProperty("csEnvironment");
env = create()
// LMDB also needs to know how large our DB might be. Over-estimating is OK.
.setMapSize(53687091200l)
// LMDB also needs to know how many DBs (Dbi) we want to store in this Env.
.setMaxDbs(4)
// Now let's open the Env. The same path can be concurrently opened and
// used in different processes, but do not open the same path twice in
// the same process at the same time.
.open(new File(csEnvironmentStr+"/csdb"));
...
I get this exception, the last line above is line 91 indicated below:
org.lmdbjava.LmdbNativeException$ConstantDerviedException: Platform constant error code: ENOENT (2)
at org.lmdbjava.ResultCodeMapper.checkRc(ResultCodeMapper.java:113)
at org.lmdbjava.Env$Builder.open(Env.java:458)
at org.lmdbjava.Env$Builder.open(Env.java:474)
at uk.co.example.LmDbStore.init(LmDbStore.java:91)
As you can see this code is lifted from the Tutorial example. The path specified does exist. Ideas?