I\'m creating a stand-alone Sava application with Spring, to handle the JDBC access. The application works fine on every test and I decided that I need a jar to be deployed
In addition to the solution posted by @GrampaJohn, I also had to make sure that I was packaging the required libraries into the generated JAR file instead of extracting them into the generated JAR.
In Eclipse Mars, after making changes to the pom.xml (added maven-shade plugin as suggested by @GrampaJohn), follow the steps:
File -> Export -> Select Java folder -> Runnable JAR File -> enter the Launch configuration (main file), export destination, and in Library Handling, select "Package required Libraries into generated JAR -> Click finish
.