This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "creating an executable jar file" Watch "creating an executable jar file" New topic
Author

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?

Thanks

Best Regards

Guy
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19720
    
  10

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


Guy
 
Have you checked out Aspose?
 
subject: creating an executable jar file
 
It's not a secret anymore!