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?
How to package other jar files into one jar? How can i get the class in the inner jar file?
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.