This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Creating Stand-Alone jar with only dependent classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Creating Stand-Alone jar with only dependent classes" Watch "Creating Stand-Alone jar with only dependent classes" New topic
Author

Creating Stand-Alone jar with only dependent classes

Daniel Puryear
Greenhorn

Joined: Jun 02, 2002
Posts: 22
I'd like to deploy an app in a standalone jar file, but instead of pulling in entire libraries of jar files, I'd like to start with the main class and walk backwards, pulling in ONLY the classes neeeded by the application. I use to use Visual Cafe and it did it auto-magically but I'm now using Eclipse with occasional use of Ant with batch commands.
Would anyone like to share some Ant task or the like. It would sure save a lot of time! I'll post back if/when I get a process working...
-Danman
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Creating Stand-Alone jar with only dependent classes
 
Similar Threads
how to create WAR files
Creating JAR with only dependent classes
include jar in an executable jar
organizing classes into packages
Using Eclipse 3.1.0 IDE, JBOSS 4.0.0 server & ANT as build tool