Page 1 of 1

java.lang.NoClassDefFoundError: org/docx4j/openpackaging/pac

PostPosted: Fri Aug 23, 2013 8:48 pm
by prra1mst
I use docx4j API in my web application to create table.
I am using Eclipse environment and no exceptions thrown duing run time, but no table is
created at the word doc output. when i debug, i found this exeption

java.lang.NoClassDefFoundError: org/docx4j/openpackaging/packages/WordprocessingMLPackage

I have included all the Jar files and its working perfect in normal java application.

how to fix this ?

Re: java.lang.NoClassDefFoundError: org/docx4j/openpackaging

PostPosted: Fri Aug 23, 2013 10:54 pm
by jason
You might think you have a docx4j jar file on your class path, but you don't. You'll need to add it (typically, in WEB-INF/lib)