JAR files are actually a collection of files compressed to a smaller size, making it easier to send files over e-mail or to save them to a disk. The JAR file itself is essentially a container for the actual compressed data files. Any program that opens compressed files (like .zip files) will open JAR files. However, you can also run JAR files with the Java Archive Tool, which is part of the Java Developer Kit. The tool does not have a user interface. You type in commands at the command line to get to the compressed files contained within.
- Skill level:
Things you need
- Java Developer Kit
- Winzip or other compression program
Right-click on the JAR file. A menu opens.
Choose WinZip (or other compression program listed in the menu). The file opens.
Choose "Open With . . ." if you do not see your compression program listed in the menu. Windows opens the Open With dialogue.
Choose the compression program from the list.
Select "Start" (in Windows 7 machines). The Start menu expands.
Type "cmd" in the Search programs and files field. The command line interface opens.
Type "jar xf jar-file [archived-file(s)]" (without the quotes). In this statement, replace jar-file with the name of the JAR files that contain the data to be extracted. Enter the path to the JAR file if it is in a different directory. To extract individual files, replace [archived-file(s)] with the name (or names) of the files you want to extract from the archive. If you enter nothing, the command extracts all files.
Tips and warnings
- When you enter individual files into the command, make certain there is a space between individual files.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for