posted 20 years ago
I am not nesting Jar files. I had a class (Engine) importing a package from a external library (another jar file). I had set the CLASSPATH correspondingly, and my class can run smoothly. After I jarred up my Engine class in a jar file, I cannot run the jar file smoothly; a java.lang.NoClassDefFoundError is thrown, indicating that the package that I imported does not exist.