Hi Friends,
We are attracted to the things if they comes very easy to us. In the same way i will show you how to create an Executable Jar File of your Java application using Eclipse/MyEclipse. This is a very cool process, no need to by heart any thing. You have to download Fat Jar Eclipse Plug-In. It is a Deployment-Tool which deploys an Eclipse java-project into one executable jar. It adds the Entry "Build Fat-JAR" to the Export-Wizard after properly added to your IDE.
Steps :
Step 1: Create your application in Eclipse.
Step 2: Download the required plugin to export your application as Executable Jar File.
Here is the URL : http://sourceforge.net/projects/fjep/
Step 3: Extract the downloaded .zip file. It contains the plugin in the form of a jar file.
Step4: Place the jar file in the eclipse plugins directory. The plugins directory is in the eclipse installation directory.
Step 5: Stop eclipse if it is already running.
Step 6: Start eclipse from the command-line with the clean option "eclipse -clean", otherwise the plugin will not be found.
After these steps, you will find an entry in Export – Wizard to export your application as an Executable Jar File.
Step 7: Now right click on your application to export and Click on Export.
Step 8 : Select Fat Jar Exporter in Export Window.
Step 9 : Select your project to export
Step 10 : After selecting your project to export, click on Next and select your project main class to run.
Step 11: Click on Finish. Now you can find your application as an Executable Jar File.