aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse project -> Jar ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse project -> Jar ?" Watch "Eclipse project -> Jar ?" New topic
Author

Eclipse project -> Jar ?

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
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

Joined: Jul 11, 2001
Posts: 14112
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.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse project -> Jar ?
 
Similar Threads
Eclipse Plugin-To create a jar in Web Project when i build a Java Project
Why does a project show src.shared.<project-name> in its workspace
How to set jar files in eclipse europa?
use MAVEN_REPO in eclipse
Third party libraries and WSAD 5.1.0