GeezerVison is showing github.com — 0.9.x doesn't work with FreeBSD, 0.8.x did · Issue #283 · lmdbjava/lmdbjava
0.9.x doesn't work with FreeBSD, 0.8.x did #283
Description
The 0.9.x version does not work with FreeBSD or any other OS that isn't listed in org.lmdbjava.TargetName#resolveOs because that method throws an exception if it does not recognise the OS.
That method is only used to resolve the "bundled" libraries, so if it did't throw an exception (such as simply returning "unknown") then 0.9.x would work fine as long as the lmdbjava.native.lib property is set correctly (just needs to be set to "lmdb", since installing the correct port will put liblmdb.so in the standard library path)
Note that 0.8.x has always worked with FreeBSD without having to set any properties.
Activity
patrickSpaceSurfer commented on Feb 5, 2026
Sorry, this is not correct, it will work with FreeBSD as long as the lmdbjava.native.lib property is set. However, it would be nice if the code falls back to loading the lmdb system installed library if the os is "not supported". That would be consistent with 0.8.x
bp-alex commented on Feb 5, 2026
Thanks for reporting this. I think it preferable to retain the explicit opt-in behavior rather than silently falling back to a system library. The rationale is that 99% of users get a tested, CI-verified bundled library with known provenance. Silent fallback could lead to hard-to-diagnose issues from unknown LMDB versions/builds.
We should have a better error message though to help in cases where the operating system is undetected. As such, fc1bcbd now explicitly mentions that -Dlmdbjava.native.lib=lmdb works if LMDB is installed in standard system paths.
bp-alex commented on Feb 6, 2026
I have released 0.9.3 which includes this updated message. I will close this, please feel free to re-open if any concerns.
Reacted by Patrick Mackinlay
Metadata
Metadata
Development
No branches or pull requestsIssue actions