I have an OSGI (more precsiely a Wisdom framework-based) application in which i would like to use the JACOB library to interact with Office (the goal being to transform PPT into images). I can easily add the JACOB jar to my CLASSPATH, but JACOB requires the dll to be available in the java.library.path
environment variable.
Question: How can I add it in my maven build?
EDIT I'm using maven 3
It appears JACOB has some special code which seems directly related to this class of errors.
Indeed, there is a jacob.dll.path
defined in LibraryLoader
by which one can give Jacob an absolute path to access the jacob dll (which do not directly uses System.loadLibrary
). Setting that library directly solved my problem.