To do word count in JAR archives, let’s get to know a little more about this format.
A JAR (Java ARchive) file is mostly used to combine many Java class files and their metadata and resources (text, images, etc.) into one file for easy distribution.
JAR files may include a special manifest file that describes how to use the file. This increases security and can allow the Jar file to be executed directly.
JAR files use the file extension “.jar”. A JAR file contains one or more files that are compressed or stored. it can be opened with the jar command line utility: “jar -xf foo.jar”.
Since it is based on the ZIP format, many common software utilities can create, modify or open XPI files, notably 7-Zip, WinZip and WinRar.
AnyCount can do “on the fly” extraction and counting of files from .JAR archives, including archives protected with password.
Therefore, if you would like to calculate word counts of files in the archive (e.g., which you have just received from client), you do not need to extract them first. Just add archive to AnyCount as you usually add individual files and AnyCount will do the rest.
When counting of .JAR files is completed, you can: