Copying Classes Between JARs

When you have opened two different JARs, you can easily copy classes or entire folders from one JAR to another.

If you have identified classes in one JAR that you want to add to another JAR, this saves you the trouble of having to manually search for and add class files. An otherwise tedious task becomes a simply point-and-click process.

  1. Open the two JARs with which you want to copy and paste.

  2. Select the source JAR.

  3. Select the classes or folders you would like to copy. (Use CTRL or SHIFT-clicking to help select multiple items.)

  4. Click Edit, then Copy to copy the classes and keep the originals in the source JAR.

    OR

    Click Edit, then Cut to copy the classes and remove the originals from the source JAR.

  5. Select the destination JAR.

  6. Click Edit, then Paste.

    The classes appear in the destination JAR. Since the copied classes retain their package structure, it does not matter where in the hierarchy you click and Paste, as they will end up in their "proper" place.

    Please note that any identical files found in the destination JAR are overwritten.

  7. For the source and destination JARs click File, then Save to retain the changes made.