Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
When your class is in a package, the package directory structure must be inside the JAR! You can’t just pop your classes in the JAR the way we did pre-packages. And you must be sure that you don’t include any other directories above your package. The first directory of your package (usually com) must be the first directory within the JAR! If you were to accidentally include the directory above the package (e.g. the “classes” directory), the JAR wouldn’t work correctly.
Making an executable JAR