I need Docx4j library in my RCP application.
So i create a new "Plug-in from existing JAR archives" and put all needed JARs there.
But when I use it, I have an error:
ERROR org.docx4j.utils.ResourceUtils .getResource line 40 - Couldn't get resource: org/docx4j/convert/out/pdf/viaXSLFO/docx2fo.xslt
Here the Docx4j source code line:
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (loader == null) { // IKVM (v.0.44.0.5) doesn't set context classloader
loader = ResourceUtils.class.getClassLoader();
}
How can I allow docx4j JAR to read its resources?
(obviously in my 'docx4j plugin' org/docx4j/convert/out/pdf/viaXSLFO/docx2fo.xslt exists)
Thank you!