Been racking my brain and I figure I must have something simple wrong that I am overlooking as I think I've not got the dependencies right (although I'm not sure about that).
My classpath now is as follows: export JAVA_HOME=/home/rob/downloads/JDK/jdk1.6.0_24/bin/java export PATH=$PATH:/home/rob/downloads/JDK/jdk1.6.0_24/bin: export CLASSPATH=CLASS$PATH:/home/rob/downloads/javamail-1.4.4/mail.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/jaf-1.1.1/activation.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/poi-3.8-beta1-20110307.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/poi-scratchpad-3.8-beta1-20110307.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/poi-ooxml-3.8-beta1-20110307.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/poi-ooxml-schemas-3.8-beta1-20110307.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/poi-examples-3.8-beta1-20110307.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/poi-excelant-3.8-beta1-20110307.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/lib/commons-logging-1.1.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/lib/junit-3.8.1.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/lib/log4j-1.2.13.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/ooxml-lib/dom4j-1.6.1.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/ooxml-lib/stax-api-1.0.1.jar: export CLASSPATH=$CLASSPATH:/home/rob/downloads/poi-3.8-beta1/ooxml-lib/xmlbeans-2.3.0.jar: And my program has the imports as follows: import org.apache.poi.poifs.filesystem.*; import org.apache.poi.hwpf.*; import org.apache.poi.hwpf.extractor.*; import java.io.*; import java.util.regex.*; import org.apache.poi.xwpf.*; Further into the code I then have: XWPFDocument docx = new XWPFDocument(fs); Which is also causing issues, but the fact I can't get xwpf to import/work would say that is the issue with that, I've seen other people using the same code and it works fine, so it is confusing as to what is wrong. -- View this message in context: http://apache-poi.1045710.n5.nabble.com/XWPF-import-issues-tp3700916p3775305.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
