Skip to content
Advertisement

How can I add files to a Jar file?

I want to add a series of files previously extracted from other files(already done) to a jar. These files will be overwriting files inside the JAR. What is the most efficient way to do it? I need it to be fast. Thank you!

Advertisement

Answer

A JAR file is a ZIP file, remember.

Just use some ZIP library.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement