Class LibraryLoader

java.lang.Object
com.exonum.binding.core.util.LibraryLoader

public final class LibraryLoader
extends java.lang.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.

See Also:
Exonum Java installation instructions, Build configuration to enable integration testing of Java services
  • Method Summary

    Modifier and Type Method Description
    static void load()
    Loads the native library with Exonum framework bindings.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • load

      public static void load()
      Loads the native library with Exonum framework bindings.
      Throws:
      java.lang.LinkageError - if the native library cannot be loaded; or if it is incompatible with this library version