How to use JACOB in an OSGi application?
问题 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 回答1: You probably have three possibilities for this use case MAVEN_OPTS You could use the MAVEN_OPTS