How to create an executable jar file using eclipse
You can create an executable jar file using eclipse in the following manner :
Step 1: Create a project. I have created a project with name “autorun”
Step 2: Right click on project > select Export
You will see export options select JAR file, then click next
Select the resource to export. Give export destination.
Step 4: Click Next.
Step 5: Specify the “main class” that you want to execute when someone clicks on the jar file (it is a starting point), then Click Finish
Done. Now Double click on the jar and it will run