On 13.01.2017, at 11:41, David Samuel Lim <beitrik2...@gmail.com> wrote: > > After all that has said, I have a question: > > *Why is it that when the references to the OpenNLP 1.6.0 libraries are > removed, the program "reverts" back to OpenNLP 1.5.3, and how do I undo > this? (i.e. when I re-add the 1.6.0 libraries, the program starts using > 1.6.0 instead of 1.5.3)* > Once again, thanks to all who have answered so far for their insight and > advice.
That is because you OpenNLP classes are in multiple JARs on your classpath. Depending on the order in which the JARs are mentioned on the classpath, the one or the other version of these classes is preferred. How to fix this? a) make sure that you don't use fat JARs (cf. other mail I wrote). b) consider using a tool that manages your dependencies such as Maven, Gradle, or Ivy. I'd personally recommend Maven. It's a bit of another learning curve though. Cheers, -- Richard