wisdom-framework

How to use JACOB in an OSGi application?

心不动则不痛 提交于 2019-12-11 12:58:53
问题 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