The JAR archive is a platform-independent file format

Source: Internet
Author: User

The JAR (Java Archive,java Archive) is a platform-independent file format that allows many files to be combined into a single compressed file that can be opened using Java software.

The JAR file created for the Java EE application is an EAR file (Enterprise JAR file).

The JAR file format is based on the popular ZIP file format.

Unlike ZIP files, JAR files are not only used for compression and publishing, but are also used to deploy and encapsulate libraries, components, and plug-ins, and can be used directly by tools such as compilers and JVMs.

The jar contains special files, such as manifests and deployment descriptors, to indicate how the tool handles a particular JAR.

1 Package com.myswing;2 3  Public classfourteenswing {4      Public Static voidMain (string[] args) {5         intBeernum = About;6String Word ="Bottle";7         8          while(beernum>0){9             Ten          if(Beernum = =1) One          { AWord ="Bootle"; -          } -  theSystem. out. println (beernum+""+word+"of beer on the wall"); -System. out. println (beernum+""+"of Beer"); -System. out. println ("Take one down ."); -System. out. println ("Pass it around."); +Beernum = Beernum-1; -          +            if(beernum>0);  A            { atSystem. out. println (beernum+""+"of beer on wall"); -            } -            { -System. out. println ("No more bottles of beer on the wall"); -            } -         }           in     }         -}

The JAR archive is a platform-independent file format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.