Deleting Classes from a JAR

Deleting classes from your JAR is a quick way of removing unwanted class files and optimizing the JAR's size.

Please note that deleting classes does not delete their dependencies, as they may be required by other files in the JAR. However, deleting classes does remove any of their manifest entries.

To delete classes from a JAR:

  1. Open or select the JAR that contains the files you want to delete.

  2. Select the classes or entire folders to delete. (Use SHIFT or CTRL-clicking to select multiple files.)

  3. Click Edit, then Cut to remove the selected files or folders from your JAR, but keep them in the buffer for a possible paste.

    OR

    Click Edit, then Delete to remove the selected files from the JAR without transferring any of the information to the clipboard.

  4. The selected classes are removed from the JAR.

    Please note that even though the classes are gone, the ratios and other stats will not change until you save.

  5. Click File, then Save to retain these changes, and to recalculate proper file sizes and ratios.