How Do I Package and Deploy an Eclipse Java Application?

Rick picture Rick · Mar 31, 2010 · Viewed 24.2k times · Source

I have built a Java application that has some dependencies (~10). I would like to easily package this application up and deploy it as a single file to a CD or USB drive.

There doesn't seem to be any "nice" wizard to search the project, grab the dependencies and setup the classpath on the target computer. I have to do this manually.

Is there a better way? Something simple, easy and straight-forward. A link to a tutorial on this would be great.

Seems to me that this should be a built-in feature to eclipse. Deployment of a web application seems easy enough, but not a Java application.

Answer

kgiannakakis picture kgiannakakis · Mar 31, 2010

Have a look at the Fat Jar Plug-In.