Easiest way to unpack a jar in java

前端 未结 6 1080
遇见更好的自我
遇见更好的自我 2021-01-20 09:30

Basically, I have a jar file that i want to unzip to a specific folder from a junit test.

What is the easiest way to do this? I am willing to use a free third party

6条回答
  •  抹茶落季
    2021-01-20 10:12

    Jar is basically zipped using ZIP algorithm, so you can use winzip or winrar to extract.

    If you are looking for programmatic way then the first answer is more correct.

提交回复
热议问题