Page 1 of 1

VariablePrepare is not working

PostPosted: Wed Jun 16, 2021 4:51 pm
by 12AM
Hello,
I have been using an old version of docx4j 6.1.2 and the VariablePrepare was working as expected.
However, after I updated to the new version 8.3.0 it is now giving me Docx4jException: Deprecated. I looked through the sample files to see if there is a new way to do it but with no luck.

I don't know if this would help but the dependencies used are docx4j-core and docx4j-JAXB-Internal.

Re: VariablePrepare is not working

PostPosted: Wed Jun 16, 2021 7:12 pm
by jason

Re: VariablePrepare is not working

PostPosted: Wed Jun 16, 2021 11:12 pm
by 12AM
now the project isn't running, it shows this error
java.lang.ClassNotFoundException: org.docx4j.openpackaging.exceptions.Docx4JException

Re: VariablePrepare is not working

PostPosted: Thu Jun 17, 2021 7:09 am
by jason
Clean; rebuild? What is your IDE?

Re: VariablePrepare is not working

PostPosted: Thu Jun 17, 2021 4:27 pm
by 12AM
already done that. I'm using Eclipse

Re: VariablePrepare is not working

PostPosted: Fri Jun 18, 2021 7:14 am
by jason
Maven > Update Project ?
That class is definitely there, in docx4j-core.

Re: VariablePrepare is not working

PostPosted: Thu Jun 24, 2021 9:40 pm
by 12AM
sorry for the late reply, I have done that too even cleaned the server and updated the maven project but it still gives that weird error although the class is there