This is a "portable java" version of the Couchbase Lite Android core.
To see how this fits into the overall architecture, see the Couchbase Lite Project Structure.
This is currently just a stub project. There is code that has been developed that serves as a Java <-> Native SQLite bridge (very similar to sqlite4java) which will be added to this project to make in functional.
$ ./gradlew clean && ./gradlew test
- Import project
- Define a new run target to run the tests
- Hit the play button
As mentioned in the sqlite4java docs, sqlite4java does not work "out of the box" with Maven.
Here's what I did to make this work on my OSX system:
$ cd ~/.gradle
$ cp ./caches/modules-2/files-2.1/com.almworks.sqlite4java/libsqlite4java-osx/0.282/e18dabd7fe70e37771457a63162fe6f028628ac9/libsqlite4java-osx-0.282.jnilib ./caches/modules-2/files-2.1/com.almworks.sqlite4java/sqlite4java/0.282/745a7e2f35fdbe6336922e0d492c979dbbfa74fb/
$ cd ./caches/modules-2/files-2.1/com.almworks.sqlite4java/sqlite4java/0.282/745a7e2f35fdbe6336922e0d492c979dbbfa74fb/
$ java -jar sqlite4java-0.282.jar -d
Now, instead of getting an java.lang.UnsatisfiedLinkError: no sqlite4java-osx-x86_64-0.282 in java.library.path it should output [sqlite] Internal: loaded sqlite 3.7.10, wrapper 0.2