Package com.exonum.binding.core.util
Class LibraryLoader
- java.lang.Object
-
- com.exonum.binding.core.util.LibraryLoader
-
public final class LibraryLoader extends Object
A loader of the native shared library with Exonum framework bindings. It loads the native library and also verifies that it is compatible with the Java classes. The native library is compatible iff it has exactly the same version as this Java library. The revision from which they were built is currently not checked, but may be in the future (see ECR-3173), because the API between Java and native is considered internal and can be changed in an incompatible way in any revision.To enable loading of java_bindings library, add a path to the folder containing it to
java.library.path
property, e.g.:java -Djava.library.path=${EXONUM_HOME}/lib/native …
This class is thread-safe.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
load()
Loads the native library with Exonum framework bindings.
-
-
-
Method Detail
-
load
public static void load()
Loads the native library with Exonum framework bindings.- Throws:
LinkageError
- if the native library cannot be loaded; or if it is incompatible with this library version
-
-