Notice: Development on this repository is currently on pause during our v3 rearchitecture. Please see storj/storj for ongoing v3 development.
Java library for encrypted file transfer on the Storj network via bindings to libstorj.
For building Android applications it is recommended to use the android-libstorj library.
The library consists of a Java archive (JAR) and native shared libraries.
The JAR can be fetched via Gradle or Maven, or downloaded from Maven Central.
dependencies {
compile 'io.storj:libstorj-java:0.8.3'
}
<dependency>
<groupId>io.storj</groupId>
<artifactId>libstorj-java</artifactId>
<version>0.8.3</version>
</dependency>
Pre-build native libraries for Windows, Linux and macOS can be downloaded from the latest release on GitHub.
The native libraries should be extracted to a location within the Java libary path. Usually it is just enough to have them all in the working directory of the application.
On Linux it might be also necessary to set the LD_LIBRARY_PATH
environment variable to the same location.
Some system you may observe the error Problem with the SSL CA cert (path? access rights?)
. This happens if the curl library cannot detect the location of the SSL CA certificates bundle. The latter can be manually set using the STORJ_CAINFO
environment variable. If there is no suitable bundle on the system, one can be downloaded from here.