permaculture playing cards*
The moose likes Beginning Java and the fly likes jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar files" Watch "jar files" New topic
Author

jar files

RAHUL
Greenhorn

Joined: Nov 08, 2006
Posts: 7
should a jar file include a main class name in it manifest file.
and whether jar file can execute without this
Petrus Pelser
Ranch Hand

Joined: Feb 20, 2006
Posts: 132
You do not need to supply the main class' name in the manifest, but then you will not be able to execute it, unless you supply the fully qualified name with the jar in your classpath.

Most of the packages are packaged in this way - i.e. try and execute javaee.jar ...
 
jQuery in Action, 2nd edition
 
subject: jar files