• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse project -> Jar ?

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • 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 !
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic