0

I am using RocksDB in a scala project with SBT.
For windows I understand that I need to infor SBT about the win64 DLL which is inside the jar file, but am still not getting this right.

I have tried what us written here but with no luck

How to resolve a non-jar (dll/jnilib) library dependencies in sbt?

How do I use RocksDB in a windows Java project?

Community
  • 1
  • 1

1 Answers1

1

You don't need to explicitly tell SBT about the Native Library (DLL on Windows) and the Rocks Jar file includes the Native Library and the startup code of RocksDB knows how to load that from the Jar.

Just include the RocksDB jar dependency (which includes the DLL) in your SBT build file as you would any other Java library.

adamretter
  • 3,885
  • 2
  • 23
  • 43
  • What are the required dependencies? I too have been looking at this and had issues with dependencies. I saw this one https://github.com/facebook/rocksdb/issues/1329 but still not got it working – LK__ Dec 01 '16 at 09:14
  • Actually my issue was not related... Issue was that I was running from within IntelliJ which is 32 bits, so the check for 64bit architecture was failing. Running from SBT on command line works as expected. – LK__ Dec 01 '16 at 13:15
  • My problem running on Windows from intelliJ was not the OS (which is 64 bit) but that I was using 32bit JDK. The OS check requires JDK 64bit to be used. – LK__ Dec 29 '16 at 05:26
  • RocksDB does not support 32bit Windows. – adamretter Jan 21 '17 at 00:12
  • I think more accurately 32 bit JVM. You may be running 64 bit windows with 32 bit JVM and this will also fail (at least in the version from about 2 months ago) – LK__ Jan 21 '17 at 18:15