Name: TileDB-Java
Owner: TileDB, Inc.
Description: Java JNI interface to the TileDB storage manager
Created: 2018-03-08 15:22:05.0
Updated: 2018-04-25 06:54:21.0
Pushed: 2018-05-23 18:39:13.0
Size: 454
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
It is required to first install or build from source TileDB.
To build the JNI extension you need to install:
If TileDB is not installed in global system path, the ENV variable TILEDB_HOME
must be defined.
To build the JNI library run:
./gradlew assemble
This will create the TileDB JNI library in build/libtiledb.jnilib
.
Before running the Java code you should copy this file in your system library path.
Alternatively you can add the build folder in your LD_LIBRARY_PATH
ENV variable.
To run the tests use:
./gradlew test
You can run the examples located in src/main/java/examples
using you IDE or from a terminal.
To run an example from the terminal use:
java -cp build/libs/tiledb-jni-1.0-SNAPSHOT.jar examples.TiledbArraySchema
You may need to explitly define the java library path:
java -Djava.library.path=".:<path/to/TileDB-Java/build>" -cp build/libs/tiledb-jni-1.0-SNAPSHOT.jar examples.TiledbArraySchema