Java

After building TileDB-Java, you can run the examples located in path/to/TileDB-Java/src/main/java/examples using you IDE or from a terminal.

To run an example from the terminal, use:

cd /path/to/TileDB-Java/src/main/java/examples/io/tiledb/java/api
java -cp /Users/stavros/TileDB-Inc/TileDB-Java/build/libs/tiledb-java-0.1.10-SNAPSHOT.jar examples.io.tiledb.java.api.ArraySchemaExample

You may need to explicitly define the java library path if not using the bundled jar:

cd /path/to/TileDB-Java/src/main/java/examples/io/tiledb/java/api
java -Djava.library.path=".:/Users/stavros/TileDB-Inc/TileDB-Java/build/tiledb_jni" -cp /Users/stavros/TileDB-Inc/TileDB-Java/build/libs/tiledb-java-0.1.10-SNAPSHOT.jar examples.io.tiledb.java.api.ArraySchemaExample

Last updated