Java Package - Creation of JAR Files

Creation of JAR Files

JAR Files are created with the jar command-line utility. The command

jar cf myPackage.jar *.class

compresses all .class files into the JAR file myPackage.jar. The ' c ' option on the command line tells the jar command to "create new archive." The ' f ' option tells it to create a file. The file's name comes next before the contents of the JAR file.

Read more about this topic:  Java Package

Famous quotes containing the words creation, jar and/or files:

    “Like witches they flew along rows
    Keeping creation at ease;
    With a tendril for needle
    They sewed up the air with a stem;”
    —Theodore Roethke (1908–1963)

    “Drink your fill when the jar is first opened, and when it is nearly done, but be sparing when it is half-empty; it’s a poor saving when you come to the dregs.”
    —Hesiod (c. 8th century B.C.)

    “Here files of pins extend their shining rows,
    Puffs, powders, patches, bibles, billet-doux.”
    —Alexander Pope (1688–1744)