to generate exectuable jars with foreign libs, I normally extract them and add the directly to the jar. So no special class loader is needed anymore.
It would be nice, if you could retrieve the required libs from e.g. the build-path extract the jars (removing or ignoring Meta-Inf and some other not required files, which may cause problems) and add the extracted class-file hierachy to the new jar.
Extracting leads to file tree like this:
then I jsut have to add these class files to the jar.
(From a batch-file)
%jar% uvf %target% .
Normally widely used libaries don't cause name clashes.
The only problem I can think of would be that different libs relies on diffferent versions, but this should cause problems anyway, or?
Im not familar with eclipse plugin programming, otherwise I would do it this way.