Classpath including JAR within a JAR
问题 Is it possible to specify a Java classpath that includes a JAR file contained within another JAR file? 回答1: If you're trying to create a single jar that contains your application and its required libraries, there are two ways (that I know of) to do that. The first is One-Jar, which uses a special classloader to allow the nesting of jars. The second is UberJar, (or Shade), which explodes the included libraries and puts all the classes in the top-level jar. I should also mention that UberJar