Managing JAR Files with WinZIP

This section provides a tutorial example on how to manage a JAR file as a ZIP file with the ZIP tool, WinZIP.

The JAR specification says that "JAR file is a file format based on the popular ZIP file format". So are JAR files really ZIP files? Let's do some tests to find out.

Test 1. Create a JAR file, test.jar, with "jar" command. Rename test.jar to Unzip with WinZIP. You should have no problem to extract all files out of with WinZIP.

Test 2. Create a ZIP file,, with WinZIP. Rename to tutu.jar. Extract files from tutu.jar with "jar". You should have no problem to extract all files out of tutu.jar with "jar" command.

Test 3. Create a password protected ZIP file,, with WinZIP. Rename to secure.jar. Extract files from secure.jar with "jar". You should get a run time exception like this:

C:\herong>jar tf secure.jar secure.jar (The system cannot find the
   file specified)
        at Method)

So JAR files and ZIP files are fully compatible, as long as no encryptions are used on ZIP files.

I guess I don't need WinZIP anymore.

Last update: 2015.

Table of Contents

 About This Book

 Java Tools Terminology

 Installing Java 8 on Windows

 'javac' - The Java Program Compiler

 'java' - The Java Program Launcher

 'jdb' - The Java Debugger

 'jconsole' - Java Monitoring and Management Console

 'jstat' - JVM Statistics Monitoring Tool

 JVM Troubleshooting Tools

 jvisualvm (Java VisualVM) - JVM Visual Tool

'jar' - The JAR File Tool

 JAR - Java Archive File Format

 'jar' - JAR File Tool Command and Options

 Creating the First JAR File - hello.jar

Managing JAR Files with WinZIP



 Using JAR Files in Java Class Paths

 Creating Executable JAR Files

 'javap' - The Java Class File Disassembler

 'keytool' - Public Key Certificate Tool

 'native2ascii' - Native-to-ASCII Encoding Converter

 Outdated Tutorials


 PDF Printing Version