I want to unpack a .jar file, add files to it, and finally repack it again.
I'm not familiar with .jar archive handling
Could you give some help as to how to do this?
I'm want to do this in c#
If you know how to run commands in c# then you can use the following jar commands
to package a jar
jar -cf yourjarname.jar contentsdir
to unpackage a jar
jar -xf yourjarname.jar
To understand how to run commands using c#, this post should help you:
Run Command Prompt Commands
If you don't want to execute native commands, this could be an interesting read: Opening Jars With C#
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With