Sunday, February 6, 2011

Jars using Eclipse

1-Right click on your project and select export option.A export window will get pop-up.
2-Select jar file option from the poped-up window which will be in java option of window.
3-After Clicking JarFile option a new window will get pop-up.
4-Select the export destination for ur jar file and click next.
5-After clicking the next a new screen you will see, click on next button again.
6-Now u will see a new screen which has a field name as "Main Class" browse for your main class of    appliaction.main class is once which has main method.
7-Now select finish.

Also try the fat jar package...google for fat jar..if you are getting any exception.

No comments:

Post a Comment