I have got a JAR file which contains Utility classes, that are used in my Web Application.
Now some of the Utility classes require their respective libraries such as commons-logging, db2java.
But my final Utility JAR being packaged does not contain these required libraries , I tried including them but they are not picked up by the classes.
Can anybody tell me as to how can I include these dependant libraries inside my Utility JAR in such a way that my classes pick them and execute properly.
Just put all the lib’s in your WEB-INF/lib folder and not try to bundle them into one JAR file. Having your libs broken out into their own JAR files is easier to manage.
You can also see the versions of the jars (in case you want to update one) without having to go digging around for them