%module javaupm_o2 %include "../upm.i" %{ #include "o2.hpp" %} %include "o2.hpp" %pragma(java) jniclasscode=%{ static { try { System.loadLibrary("javaupm_o2"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. \n" + e); System.exit(1); } } %}