I am working on a java application that depends on several jars such as args4j, groovy, jasperreports, etc.
I would like to package just my code into a run-able jar while still referencing these external jars, perhaps by piping them into the one with my code somehow. Is there a way that I can do this?
I am fairly new to java, so simpler answers are probably better. Also, I plan to run this application from Windows command-line.
edit: Just to farther clarify, I have some compile-time dependencies and some run-time dependencies. I want the run-time dependencies to not be packaged into my jar so that the jar size is not so big.
edit 2: This is not a duplicate. Firstly, I am not using eclipse. Secondly, I am not trying to package external jars within the jar I am creating. Instead, I would like to keep them outside of the jar I am making and somehow specify to use these external jars when I go to run my jar.