java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER

2016-07-14 Thread Branden Visser
Hello, First message, so this is bound to be extremely dumb mistake, it certainly feels that. (Note SBT and Scala syntax follows) I've imported "org.apache.poi" % "poi-ooxml" % "3.15-beta2" (only that dependency). I have the following code to test: import org.apache.poi.xwpf.usermodel.XWPFDocu

Re: java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER

2016-07-14 Thread Branden Visser
*facepalm* Adding the main "poi" dependency seems to fix it. This problem smelled much different than a dependency issue so I didn't try it... Hopefully this helps someone else. Thanks, Branden On Thu, Jul 14, 2016 at 5:01 PM, Branden Visser wrote: > Hello, > > First message, so this is bound

Finding and navigating headings

2016-07-14 Thread Branden Visser
Hello, I'm using Apache POI to extract heading (not header/footer) content from a document. Essentially, I need to: 1. Determine if it has headings 2. Get the headings in order as they appear in the document (i.e., reading order) 3. Get the "heading levels" if possible The point of this is to in

Re: java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER

2016-07-14 Thread Javen O'Neal
Any chance you'd be willing to type up a Scala example to add to https://poi.apache.org/poi-jvm-languages.html On Thu, Jul 14, 2016 at 5:04 PM, Branden Visser wrote: > *facepalm* > > Adding the main "poi" dependency seems to fix it. This problem smelled > much different than a dependency issue so

Re: java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER

2016-07-14 Thread Branden Visser
Sure, I'll write up a gist for you. On Thu, Jul 14, 2016 at 7:36 PM, Javen O'Neal wrote: > Any chance you'd be willing to type up a Scala example to add to > https://poi.apache.org/poi-jvm-languages.html > > On Thu, Jul 14, 2016 at 5:04 PM, Branden Visser wrote: >> *facepalm* >> >> Adding the ma

Re: java.lang.NoSuchFieldError: RAW_XML_FILE_HEADER

2016-07-14 Thread Branden Visser
Here's a scala example: https://gist.github.com/mrvisser/e0cba158eee939a105844e084f7ba6b8 This is just a port of the Jython example. Hopefully I'll have more create use cases soon ;) Cheers, Branden On Thu, Jul 14, 2016 at 8:30 PM, Branden Visser wrote: > Sure, I'll write up a gist for you. > >