Replace the files in the jar package by command
need
- Modify the static files in the jar package, such as the static directory
- Modify additional packages that need to be referenced, such as dynamic link libraries or ini files
static modification
-
First backup the jar package to be modified
mkdir jar_tmp
-
Create a new directory for later packaging
cp demo.jar demo_2.jar
-
Put the package into the directory you just created
mv deomo_2.jar jar_tmp/
-
decompress
jar -xvf demo_2.jar
You can view the directory structure after decompression
-
recompress
jar -cvf0m demo.jar META-INF/MANIFEST.MF ./
-
Test the modified run