My application relies on two external libraries, I have both in jar
format and have added them to my classpath, making it possible to run my application within NetBeans.
However, I would like to package my application in an easy to use jar
file. When I tried the automatic method of jar
creation provided by NetBeans (where it auto generates a jarfile in dist/
) and ran it on another computer, I got lots of ClassNotFound (or similar) exceptions for classes that I could tell were supposed to be provided by my other libraries.
Is there a way I can include the other jarfiles I have into my own jar? I've never created an application which relies on other libraries before so this is a first for me.