• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse project -> Jar ?

 
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys : Is there a full proof, easy way to turn an eclipse project into an java executable jar file ? Ive tried using fat jar, but it doesnt work (my project consists of 4 eclipse projects, using jar files which are embedded in those sub projects), the application depends on all 4 projects.

Im assuming that eclipse would come bundled with a jar generator, and since it clearly can internally handle such dependencies at compile and run time, it should be able to package up a jar automagically, but no luck so far.

please help !
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jay,
Eclipse comes with the ability to create a regular jar. For an executable jar, you do need a plugin or external program. I've never needed to do this, but Fat Jar is the number one google hit.
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah.. I tried fat jar but it doesnt seem to work when there are multiple projects that depend on each other.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:
Jay,
Eclipse comes with the ability to create a regular jar. For an executable jar, you do need a plugin or external program.



In fact, the "JAR Manifest Specification" page of the export wizard for jar files at the bottom has a "Select the class of the application entry point" field, which works well, in my experience.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic