how to make a jar file from Eclipse.pdf

eclipse jar tutorial
1 of 6
http://www.fsl.cs.sunysb.edu/~dquigley/cse219/index.php?it=eclipse&tt...
IDE Tutorials CSE 219 Fall 2005
TOC: AkA Tactical Operations Center
Table of Contents:
Basics Tutorial
Debugging Tutorial
JUnit Testing Tutorial
CVS Tutorial
JAR Files Tutorial
CSE 219 HomePage
NetBeans
NetBeans
NetBeans
NetBeans
NetBeans
NetBeans
Eclipse
Eclipse
Eclipse
Eclipse
Eclipse
Eclipse
Making Jars
Jars allow you to have one file that is easy to deploy for your project, and in eclipse its rediculously easy.
http://www.eclipse.org/
The Opening
Open up the project you wishto create a jar of in eclipse and then goto file export.
6/8/2008 4:26 PM
eclipse jar tutorial
2 of 6
http://www.fsl.cs.sunysb.edu/~dquigley/cse219/index.php?it=eclipse&tt...
Making a Jar
The next step is to select jar file from the list of export destinations.
Select What to export
Now we select what we want to export as a jar and where we want to place the jar. This is as easy as
clicking the check box next to your project name.
6/8/2008 4:26 PM
eclipse jar tutorial
3 of 6
http://www.fsl.cs.sunysb.edu/~dquigley/cse219/index.php?it=eclipse&tt...
Options
This page allows you to deal with warnings and errors when the jar is build it isnt important and you can
move on by clicking next.
6/8/2008 4:26 PM
eclipse jar tutorial
4 of 6
http://www.fsl.cs.sunysb.edu/~dquigley/cse219/index.php?it=eclipse&tt...
More Options
This sections is used for manifest options and sealing the jar. Neither of these are important right now
however we want to select the main class that will be run when we execute the jar. To do this click browse.
6/8/2008 4:26 PM
eclipse jar tutorial
5 of 6
http://www.fsl.cs.sunysb.edu/~dquigley/cse219/index.php?it=eclipse&tt...
Selecting Main
Just like when we create a runtime profile we can select the main class. Select your main and click OK.
6/8/2008 4:26 PM
eclipse jar tutorial
6 of 6
http://www.fsl.cs.sunysb.edu/~dquigley/cse219/index.php?it=eclipse&tt...
And we are done
At this point the only thing left to do is click finish and the jar file will be created.
(c) David Quigley
6/8/2008 4:26 PM