answersLogoWhite

0


Best Answer

JAR files (Java ARchive) allows aggregating many files into one, it is usually used to hold Java classes in a library. i.e. Math.jar

WAR files (Web Application aRchive) stores XML, java classes, and JavaServer pages for Web Application purposes.

EAR files (Enterprise ARchive) combines JAR and WAR files to make a combined archive for Enterprise Applications.

User Avatar

Wiki User

โˆ™ 2007-12-26 20:18:56
This answer is:
User Avatar
Study guides

Add your answer:

Earn +20 pts
Q: What is the difference between Jar and Ear and War files?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a jar file in java?

JAR stands for Java Archive File It is nothing but an archive of Java class files. You can compare the jar file to a zip file which would compress and contain multiple document files.


How do i make jar files smaller?

Java's default jar application only comes with two options for file size: compressed or uncompressed. If that compression isn't enough for you, you may want to look into third-party solutions to actually decrease code size.


How do you create jar files in java?

You can use the command line utility 'jar'. Here is the help... Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] fil es ... Options: -c create new archive -t list table of contents for archive -x extract named (or all) files from archive -u update existing archive -v generate verbose output on standard output -f specify archive file name -m include manifest information from specified manifest file -e specify application entry point for stand-alone application bundled into an executable jar file -0 store only; use no ZIP compression -M do not create a manifest file for the entries -i generate index information for the specified jar files -C change to the specified directory and include the following file If any file is a directory then it is processed recursively. The manifest file name, the archive file name and the entry point name are specified in the same order as the 'm', 'f' and 'e' flags. Example 1: to archive two class files into an archive called classes.jar: jar cvf classes.jar Foo.class Bar.class Example 2: use an existing manifest file 'mymanifest' and archive all the files in the foo/ directory into 'classes.jar': jar cvfm classes.jar mymanifest -C foo/ .


How many grains of sand in a quart jar?

it depends on the jar and the size of the sand grains


How do you run jar file on computer?

If you have Java Environment, you just double click that .jar and you have already ran it.

People also asked