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