diff --git a/.gitignore b/.gitignore index 0f23dea..4c2add1 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,6 @@ tags hs_err_pid* replay_pid* +.idea +target + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b24fb09 --- /dev/null +++ b/pom.xml @@ -0,0 +1,33 @@ + + 4.0.0 + + com.zeekling.cn + test + 1.0-SNAPSHOT + jar + + test + + + UTF-8 + 1.8 + 1.8 + + + + + + org.rocksdb + rocksdbjni + 6.20.3 + + + + junit + junit + 4.13.2 + test + + + diff --git a/src/main/java/com/zeekling/cn/package-info.java b/src/main/java/com/zeekling/cn/package-info.java new file mode 100644 index 0000000..a14a81f --- /dev/null +++ b/src/main/java/com/zeekling/cn/package-info.java @@ -0,0 +1 @@ +package com.zeekling.cn; \ No newline at end of file diff --git a/src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java b/src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java new file mode 100644 index 0000000..a50ab62 --- /dev/null +++ b/src/main/java/com/zeekling/cn/rocksdb/RocksDbLoad.java @@ -0,0 +1,13 @@ +package com.zeekling.cn.rocksdb; + +import org.rocksdb.RocksDB; + +public class RocksDbLoad { + + public static void main(String[] args) { + RocksDB.loadLibrary(); + RocksDB.Version version = RocksDB.rocksdbVersion(); + System.out.println(version); + } + +}