skip to main content

The Basics : isCOBOL and Java : JAR Files and the Jar Utility

JAR Files and the Jar Utility
A Java Archive (JAR) file is an archive containing one or more files or directories, similar to a UNIX tar file or a Zip file. JAR files primarily contain Java class files, but any type of file can be included. These files use the file name extension “.jar”.
Jar is also the name of the utility program that is used to create, update, list contents, and extract contents from JAR files. The jar utility is included in the JDK and its usage is similar to the UNIX tar utility.
Usage examples:
1.
Create a jar library named myApp.jar putting all the classes of your project into it:
2.
Update myApp.jar by replacing MENU.class that has just been modified and recompiled:
3.
Note - The content of a jar can also be viewed with a graphical interface if you open the jar file using an archive manager like WinZip, WinRar or 7Zip.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left