RocksDB can be built as a single self contained cross-platform JAR. The cross-platform jar can be usd on any 64-bit OSX system, 32-bit Linux system, or 64-bit Linux system.

Building a cross-platform JAR requires:

Once you have these items, run this make command from RocksDB's root source directory:

make jclean clean rocksdbjavastaticrelease

This command will build RocksDB natively on OSX, and will then spin up two Vagrant Virtualbox Ubuntu images to build RocksDB for both 32-bit and 64-bit Linux.

You can find all native binaries and JARs in the java/target directory upon completion:

Maven publication

Set ~/.m2/settings.xml to contain:

<settings xmlns="" xmlns:xsi="" xsi:schemaLocation="">

From RocksDB's root directory, first build the Java static JARs:

make jclean clean rocksdbjavastaticpublish

This command will stage the JAR artifacts on the Sonatype staging repository. To release the staged artifacts.

  1. Go to and search for “rocksdb” in the upper right hand search box.
  2. Select the rocksdb staging repository, and inspect its contents.
  3. If all is well, follow these steps to close the repository and release it.

After the release has occurred, the artifacts will be synced to Maven central within 24-48 hours.