如何将文件添加到Jar文件中?

如何将文件添加到Jar文件中?

问题描述:

我想将之前从其他文件(已经完成)中提取的一系列文件添加到jar中。这些文件将覆盖JAR中的文件。最有效的方法是什么?
我需要快速。
谢谢!

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!

JAR文件是一个ZIP文件,请记住。

A JAR file is a ZIP file, remember.

只需使用一些ZIP库。

Just use some ZIP library.