JAR file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaleeswaran
    New Member
    • Mar 2007
    • 132

    #1

    JAR file

    hi!!!
    whty should we go for JAR file in java....what it's use?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by kaleeswaran
    hi!!!
    whty should we go for JAR file in java....what it's use?
    Normally a Java application consists of quite a bit of classes. Each public
    class is stored in its own file. You don't want to carry all those files around
    for every single deployment of your application do you? A .jar file is simply
    a .zip file with a bit of additional information for the JVM; it's quite convenient:
    just one file to take care of instead of an entire bunch of .class files.

    kind regards,

    Jos

    Comment

    • kaleeswaran
      New Member
      • Mar 2007
      • 132

      #3
      fine is it like a package?......
      how to create a .jar file?.....

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by kaleeswaran
        fine is it like a package?......
        It's not like a package as a Java package; it is a collection of .class files and
        resource files. Physically it's a .zip file.

        how to create a .jar file?.....
        You have to use the 'jar' command or possibly your IDE can do the job for you.

        kind regards,

        Jos

        Comment

        Working...