How to package other jar files into one jar?

How to package other jar files into one jar? How can i get the class in the inner jar file?

[98 byte] By [hsy541a] at [2007-11-27 11:29:18]
# 1

Generally not a good idea. The Java runtime won't be able to load classes from those "inner" jars, you'd have to write your own classloader to do that. It's not a brilliant idea, generally, anyway, since the point of having lots of jars is to keep your application modular. Bundling them all together like that means you have to re-deploy the whole thing to fix, for instance, one small bug in one small library

If you really want to do this, there's an Eclipse plugin called FatJar, but I urge you to consider whether you really want to do it first.

georgemca at 2007-7-29 16:27:08 > top of Java-index,Desktop,Deploying...