This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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
Bartender

Joined: Oct 14, 2005
Posts: 19103
    
    8

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: creating an executable jar file