You can and should of course add a manifest file to your jar if you want it to be an executable jar file.

Working with Manifest Files: The Basics (The Java™ Tutorials > Deployment > Packaging...