5 easy steps to unzip files without WinZip

Unzipping a zip, rar, 7z, war file etc is always easier with WinZip, WinRAR, and 7z. But if you do not have permission to install any of these, java can be used to zip and unzip compressed files.

Here is the step by step guide to unzip a file without using WinZip and using java extractor.

Steps to unzip files without WinZip:

  1. Make sure JAVA_HOME is set in the Environment Variables.
    how to unzip files without winzip: set java_home
  2. Add the <JAVA_HOME>\bin path to the path variable.
    how to unzip files without winzip: set bin path
  3. Open a command prompt window and browse to the directory where the zip/war/jar is kept or create a new folder and put the zip file inside it. So, when the zip is extracted, it will extract the contents to the folder.

    Read also: JPG vs JPEG: The difference between JPG and JPEG

  4. Type jar -tvf Sample.zip  to know the contents of the zipped file
    how to unzip files without winzip: Read contents of a zip file using java
  5. Type jar -xvf Sample.zip to extract the files
    how to unzip files without winzip: how to unzip files without winzip

I hope this helps to unzip files without using WinZip, WinRAR or any other software. Using Java to extract zip file is an awesome trick that many people don’t know.

Happy learning 🙂

Please follow and like us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top