Page 1 of 1

Noob installation question

PostPosted: Wed Nov 06, 2013 5:45 am
by aaron5309
Hey everyone!

I'm relatively new to programming and am self taught so I apologize if this is a really simple question. I'm trying to install the docx4j jar file in Eclipse (Kepler) into a project that I have already been working on. I downloaded the jar file (version 2.8.1), added it as a reference library through the Configure Build Path settings. I created a new class just to play with these features but the new class doesn't seem to see the library. I'm just trying to open a docx file and I get "WordprocessingMLPackage cannot be resolved". I tried to import org.docx4j.* but that didn't do it. I've imported other libraries before (to connect to a MySQL database specifically) so I think I've imported the jar correctly. I've read through the getting started webpage and tried to create a new java project following those instructions but that also didn't work. Where do you think I've gone wrong? If you need any more information to help me, just ask. I've been trying to get this to work for the last 4 hours and I'm finally asking for help!

Thanks everyone!

Aaron

Re: Noob installation question

PostPosted: Wed Nov 06, 2013 7:41 am
by jason
You need to add docx4j's dependencies to your class path.

You can find them in http://www.docx4java.org/docx4j/docx4j-2.8.1/ or the zip file in the parent directory.

Alternatively, use Maven. See http://www.docx4java.org/blog/2011/10/h ... n-central/