Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to make a user friendly jar file

 
Jigar Gandhi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made a jar file containing a package of my application. My application is a small game which involves JFrame.
I want to make the jar file such that as soon as a lay man clicks on the jar file the main function of my class automatically executes.

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what the Main-Class entry in the jar file manifest does: http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic