rocksdb
rocksdb copied to clipboard
Add support for Wide columns in Java
This PR adds support for wide columns in Java. First implementation is primarily focused on correctness rather than performance. We would like to merge this first and hear feedback from RocksDB Java community before refining it.
Fix #12113
Hello, after I finished compiling, the run encountered the following error: librocksdbjni-osx-x86_64.jnilib was not found inside JAR. My machine environment is macbook air 2022,The compiled command is as follows: make clean jclean DEBUG_LEVEL=0 make -j12 rocksdbjava
Hello @test-wangxiaoyu
librocksdbjni-osx-x86_64.jnilib was not found inside JAR.
This is a very strange error. Considering you have a macbook air 2022, these models have ARM CPU ( Mac computers with Apple silicon ) and Java is trying to search for Intel version of native library. My suggestion is to check that you are running native ARM version of Java. Sometimes also called aarch64. From the error message it looks like you are running Intel version of Java via Rosetta emulation layer. You can download correct version from Adoptium project or Liberica
You can also check what native library is inside the jar archive. For example this is how it looks like on my linux machine.
$ jar -t --file java/target/rocksdbjni-9.2.0-linux64.jar | grep librocksdbjni
librocksdbjni-linux64.so
Radek
@pdillinger @ajkr Can we get this one merged please?