| Jars and Wars |
|
|
|
|
A jar file is simply a collection of classes that are packaged together for easy of distribution. A war file is pretty much the same thing for web applications. You put jar files into the classpath of applications in order to use whats in them. Similarly you deploy a war file into the webapps directory of a java servelt container in order to deploy it as a web app.
The basic jar syntax is; jar -[options] jar-file input-file(s) example - c – create The name of the jar file is jam.jar and the files used to create this jar file are basically everthing in the current directory (*.*). You can also extract a jar file using the option “x” (extract) example Finally to view the contents of a jar file use the “t” option. example A war file is pretty created in exactly the same way. All you need to do is create a file with a .war extension rather than a .jar extension. example |
| < Prev | Next > |
|---|
| Hosting |
| Domains |
| Servers |
| Connectivity |
| SSL Offer |
|
||





