压缩&在java中解压缩7z文件 [英] Compressing & Decompressing 7z file in java
问题描述
我想使用java代码将文件压缩为zip,rar和7z格式。另外,我想在指定的位置解压缩这些文件。
任何人都可以告诉我如何使用7-zip在java中压缩和解压缩文件?
I want to compress a file into zip, rar and 7z format using java code. Also I want to decompress these files at a specified location. Can anyone please tell me how to compress and decompress files using 7-zip in java?
推荐答案
:
sevenzipjbinding.jar
sevenzipjbinding-Allplatforms.jar
I have used : sevenzipjbinding.jar sevenzipjbinding-Allplatforms.jar
我现在可以使用这些jar解压缩文件。
I am now able to decompress files using these jars.
尝试此链接进行减压:
http:// sourceforge.net/projects/sevenzipjbind/forums/forum/757964/topic/3844899
Try this link for decompression: http://sourceforge.net/projects/sevenzipjbind/forums/forum/757964/topic/3844899
这篇关于压缩&在java中解压缩7z文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!