Closed tiagosmx closed 4 years ago
As per sqlite4java documentation you need to direct sqlite4java to the location of the native (dll
in this case) files. We do this by passing the -Dsqlite4java.library.path=some/path
system property on startup, but it sounds like there are potentially some other options too.
I guess as long as gradle is downloading the binary correctly you can either set the property to point to that location or make tasks to move it around to where you need it to be.
Thank you for the tip! I managed to make it work through "other options" using System.setProperty:
System.setProperty("sqlite4java.library.path", "C:/sqlite4java/dlls");
I found an example for DynamoDB here which happens to use sqlite4java as well.
Apart from that, Gradle downloaded the binary correctly but it seems I am missing some Gradle/IntelliJ/something else manual configuration to make them find the binary. The same happens in Linux (Debian 10) with IntelliJ, so it is more like a Maven/Gradle configuration issue than SO specific.
Hello, can someone provide a working build.gradle script for cloudant-sync-datastore-javase running on Windows 7 x64? It seems sqlite4java-win32-x64-1.0.392 dll is not being added to the classpath.
Bug Description
The library fails to open or create a DocumentStore.
1. Steps to reproduce and the simplest code sample possible to demonstrate the issue
The code I am trying to run:
My build.gradle file:
2. What you expected to happen
Being able to create or open a local DocumentStore.
3. What actually happened
An exception is thrown:
Environment details
Android or Java version (including vendor and platform)
The full exception log: