You don't need to copy the class files from another jar file into your applications jar file. You can reference the other jar file by putting an entry in the manifest file for your jar file. For example here is a contents of a manifest file:
Code:
Main-Class: GetURLText
Class-Path: DocumentViewerWParser.jar
I have both jar files in the same folder when I execute my app:
java -jar <jarfile>
Another way is to use a script to start the app with both jar files specified on the classpath:
Code:
java -cp <yourjarile>:<otherjarfile> <classname>
Bookmarks