Want to update, add or remove file in java jar then one option is to use “jar tool” an other using “zip/unzip package”

In jar command u option stands for update jar

Jar uf <jar-file> <input-files> (for input file path should be mimic of file location in jar)

Using zip/unzip command

List of files in jar

Unzip -l <jar-file>

Delete file from jar

Zip -d <jar-file> <delete-file with path>

Add new file in jar

Zip -u <jar-file> <new-file with path>

Update file in jar

Zip -u <jar-file> <new-file with pat

Learn How to install WhatsApp on Chromebook

Post a Comment

Previous Post Next Post