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

How to Create an Executable Jar..?

 
Kutbuddin Shaikh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Dear ones,
I want to know how to create an executable jar file, to be executed by a layman by just double clicking the icon of my java application..
Thanks
Kutub
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at this -
developer.java.sun.com/developer/qow/archive/21/index.html
HTH,
- Manish
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider creating a .bat file for the user to double click instead. This allows you the opportunity to name your preferred classpath and feed in property files and whatever.
Course you may still want to jar your stuff also for other reasons.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic