Using liburbijava shared library

The UObject java API is included in the SDK remote Java library. This library is generated from the C++ SDK Remote with the tool called swig. Swig generates wrapper classes in java for all the C++ classes we want to export. It also generates JNI code to make the link between Java and the C++ library.

With this in mind, you understand that in order to use the UObject Java API, you have to somehow load the C++ JNI code in your application. We provide this C++ code in a shared library called urbijava.dll under Windows, liburbijava.so under Linux, and liburbijava.dylib under MacOs. To load the library in your java code, use the function System.loadLibrary. For example place this call in your Main class as showed bellow:

public class Main {

  static {
    System.loadLibrary("urbijava");
  }

NB: The path to the library you are loading 'urbijava' must be in your path for your program to find it. On Windows make sure the 'path' environment variable contains the path to the urbijava library. On Unix make sure that your LD_LIBRARY_PATH contains the path to the urbijava library.