Get your CodeRanch badge!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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 ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar files
 
Similar Threads
using jstl with struts
ClassNotFoundException
mysqlDriver.jar inside a JAR file
Error Loading Driver Class while using mysql's mm driver
Hibernate