I am creating a jar file of a javaagent that I have written. However, that agent depends on another java library.
So, I would like to know, how do I include a whole package that is being used by my program into the jar file so that it can be used when the jar gets executed?
Unzip the jar you want to include and put it the final jar. Here are the ant commands that will do this for you.