View Single Post
  #3 (permalink)  
Old 04-06-2007, 04:32 PM
levent levent is offline
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Quote:
The main attributes for the Manifest file include Main-Class : where you can specify the entry class for the jar file.
But still this is not like exe because it is just the zipped classes and it is platform independent.
Normally, when you installed a JRE on a machine, it adds a filetype "jar" associated with java.exe. With that association, when you double click on a jar file, it is run by JRE. (If Main-Class attribute set correctly as goldhouse stated.)
Reply With Quote