JARs contain a description of its content in the manifest file. This can be used to describe the generated artifact, by indicating the main executable class, the included dependencies or version information.
The manifest should be generated by a project manager tool, and not manually.
It is located in the META-INF/MANIFEST.MF path, and is a text file which can be opened with any editor.