How did you edit it?
In any case, jar files follow the same format as regular zip files. If you want to update the contents of the jar (possibly with a new file), you can do:
jar -uf yourJar.jar path/to/updated/Class.class
This will update your jar with the file path/to/updated/Class.class If there is already a class with the same name in this path, it will be replaced. If not, it will be created.
After that, your bath is updated.
source share