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 creating an executable jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "creating an executable jar file" Watch "creating an executable jar file" New topic

creating an executable jar file

Guy Rich
Ranch Hand

Joined: May 03, 2011
Posts: 33

Hi All I've found a lot of excellent information on creating executable jar files.
I am curious about one issue ... can an executable jar file be created from a combination of class files and existing jar files?


Best Regards

Paul Clapham

Joined: Oct 14, 2005
Posts: 19553

Sure it can. But don't imagine the solution involves putting those other jar files inside the executable jar file you're about to produce! No, the way to do it is to put Class-Path entries in the new executable jar's manifest.

The information you've already seen should explain how that works... if you've seen the right information, that is.
Guy Rich
Ranch Hand

Joined: May 03, 2011
Posts: 33

Okey-dokey ...thanks

I agree. Here's the link:
subject: creating an executable jar file