Hello to everyone who has responded. I would like to thank you for your invaluable assistance. Because of your advice, I've gained a better insight into not just OpenNLP, but Java in general as well.
I will continue to look deeper into this field. Once again I would like to thank William, Richard, Jörn for their help. Regards, David On Sat, Jan 14, 2017 at 4:08 AM, Richard Eckart de Castilho <r...@apache.org> wrote: > 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 > >