Your problem is that when you build the jars of your application, the
maven dependences of Lucene (.jar files) are not included in your jars,
that is, Java cannot find the Lucene's classes that your application use. I
had the same issue with the same stack trace.
You should better use Maven to build your project.
What you have to do, is to build your sources with the dependences and
then, your compiled application will include the Lucene's jars.
To do this, just add these lines of code in your .pom file of the Maven
Now, run your application:
All the above will resolve your issue.