[java] What's the purpose of META-INF?

You can also place static resources in there.

In example:

META-INF/resources/button.jpg 

and get them in web3.0-container via

http://localhost/myapp/button.jpg

> Read more

The /META-INF/MANIFEST.MF has a special meaning:

  1. If you run a jar using java -jar myjar.jar org.myserver.MyMainClass you can move the main class definition into the jar so you can shrink the call into java -jar myjar.jar.
  2. You can define Metainformations to packages if you use java.lang.Package.getPackage("org.myserver").getImplementationTitle().
  3. You can reference digital certificates you like to use in Applet/Webstart mode.