In Linux, how to update a java jar with a file?
1. we can do this either with jar or zip. I am going to use zip.
2. if zip is not installed in your system, please install it.
3. zip -u jarFilename.jar file.txt
4. zip -u jarFilename.jar pathOfFile/file.txt
( that is it, you have updated the jar file)
5. if you want to delete a file from java jar.
6. zip -d jarFilename.jar file.txt
(that is it, it removed the javaJarFile)
1. we can do this either with jar or zip. I am going to use zip.
2. if zip is not installed in your system, please install it.
3. zip -u
4. zip -u jarFilename.jar pathOfFile/file.txt
( that is it, you have updated the jar file)
5. if you want to delete a file from java jar.
6. zip -d
(that is it, it removed the javaJarFile)