Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating an executable jar file

 
Guy Rich
Ranch Hand
Posts: 33
Eclipse IDE Redhat Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20758
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
Eclipse IDE Redhat Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okey-dokey ...thanks


Guy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic