jar tf <jar-filename.jar>
jar cvf YourJarName.jar -C src .
In this example, src is the base directory of the project. This is important when referencing the class later on.
For example, a project directory structure could be:
/src/com/projectname