Update the contents of JAR Files
Command for updating the contents of JAR File
jar uf jar-file-name.jar File(s)_to_add
where,
- jar indicates to call the jar tool.
- u indicates to update the content.
- f indicates to extract from the file.
- File(s)_to_add indicates the name of the files that should be updated to the jar file.
Example
jar uf myjar.jar Sound.class
Output
The contents of Jar File will be updated.
Other commands
-
v indicates to verbose information about updated files.
Example
jar ufv myJar.jar Sound.class
Output
adding: Sound.class(in = 225) (out= 184)(deflated 18%)
Working of other commands like 'M','m','0' are similar as creating JAR Files. You can refer the page Creating JAR Files.