java - How to include opencv native library while exporting to jar -
i preparing jar compares images , returns results accordingly. using opencv comparing same. when exported jar , provided collegue consume in android application, getting error on following line.
system.loadlibrary(core.native_library_name);
on checking, found library being consumed form local path on system. how can pass following library in jar, every once can consume it.
also not sure, whether work then, system.loadlibrary tries consume java paths in system. alternative load library classpath?
open suggestions.
native libraries depend on libraries outside of jvm, , can not added in portable way java application. being said: can still include file in jar opening jar file, zip, add file in, , reference path (ex: /yourlibs/bla.lib
loading jar be:
nativeutils.loadlibraryfromjar("/yourlibs/bla.lib");
you might miss lot of dependencies , have of manually reading docs, scanning code , testing code, , might still limited os installations.
Comments
Post a Comment