Zipping External Libraries With Jar
Hey, quick question.
I have a program where I am using an external library. Currently, I have it required that the external library is located with the executable jar and I have the following line in my manifest:
Quote:
Class-Path: SX.jar
I wanted to know if it was possible to take the external library and put it into the executable jar so it would just be one file and the external library would travel with the executable jar. If it is possible, how would I tell the manifest to look inside the executable jar for the library?
Any help is appreciated. Cheers
Re: Zipping External Libraries With Jar
A typical IDE should do this for you (I know at least eclipse does). Otherwise you can unpack the necessary jar's, then add them to your application jar directly (been a while since I used the command line to do this so I'm not sure there is an easier way than this).