File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How to Create an Executable Jar..? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to Create an Executable Jar..?" Watch "How to Create an Executable Jar..?" New topic

How to Create an Executable Jar..?

Kutbuddin Shaikh

Joined: Oct 06, 2001
Posts: 6
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..
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2591

Have a look at this -
- Manish
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
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.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: How to Create an Executable Jar..?
It's not a secret anymore!