Modify jar files in Linux
Description: Usually when the Java program is online, the computer is on the intranet and the jar package needs to be tested before it can be uploaded. Sometimes, there is not much online content, so I wonder if I can only test a few. class file, the hard work pays off. I learned on the Internet that the following methods can be used to solve this problem. I also hope that other apes who encounter such problems can learn from the following. I have listed the operation steps for everyone. I hope it will be helpful to you. Everyone helps
#Enter the directory where the jar package is located and create a temporary folder
mkdir tmp
#Copy the jar package to the temporary folder
cp xxx.jar ./tmp
#Enter the temporary tmp directory and unzip the jar package
jar -xvf xxx.jar
#repackage
jar -cfM0 ccms.jar *
Just restart the packaged file
That’s it for now. I hope everyone goes well and gets off work early. If you have any questions, please leave them in the comment area.