There is a java-archive main.jar in it there are files and folders. It is necessary to replace the target files in the / main / core / folder that is in the archive. Target files are in a regular folder. How to implement it in the command line .bat or .vbs?
1 answer
Java SDK includes a jar archiver, use it. In fact, this is a regular ZIP archive, just the file extension is different. You can use any archiver that supports the ZIP format. But you need to know that some jar have a built-in digital signature, it can be seen in the file MANIFEST.MF inside the archive. If you have one, then after the change will not work.
|
jar --help:-u update existing archive- zRrr