Hi,
I'm working in a company who needs to create dynamic *.docx files. I've reached to run an example with docx4j 2.7.1 jar and Java 6. But the problem is that we are using a Tomcat web server to run the app. The server uses java 1.4.2 which is not compatible with docx4j (this requires java 6 because the Jaxb dependencies).
Now, I'm trying to compile docx4j 2.7.1 sources into my ide (we are using IBM Rational Software Development Platform Versión: 6.0.0 ID de creación: 20041117_2230) whicj is based on Eclipse (I'don't know the version).
My idea is to get a compiled version from docx4j 2.7.1 to get the *.class files and then use RetroTranslator to make them compatible with Java 1.4.2 (and with our server ).
The files that I've placed like libraries into the project are these
antlr-2.7.7.jar
antlr-runtime-3.3.jar
avalon-framework-api-4.3.1.jar
avalon-framework-impl-4.3.1.jar
commons-codec-1.3.jar
commons-io-1.3.1.jar
commons-lang-2.4.jar
commons-logging-1.1.1.jar
docx4j-2.7.1.jar
fop-1.0.jar
jaxb-api-2.0.jar
poi-3.8-beta4.jar
poi-scratchpad-3.8-beta4.jar
serializer-2.7.1.jar
stringtemplate-3.2.1.jar
wmf2svg-0.9.0.jar
xalan-2.7.1.jar
xml-apis-1.3.04.jar
xmlgraphics-commons-1.4.jar
log4j-1.2.15.jar
And the error that the ide is splashing is at SimplePageMaster.java because the projetc can't find org.plutext.jaxb.xslfo.BackgroundAttachmentType (which gives no problems into the ide).
I've tried to import this file manually, but it did not worked.
Now I'll try to use RetroTransalator with the *.class files contained into the docx4j 2.7.1 jar. If it works, I'll post here.
Why I can't compile the source code? Any ideas? What is my mistake?
Thanx in advance.