Ankit_Add

Tuesday, January 13, 2015

How to Create a JAR file using Eclipse

A JAR (Java ARchive) file is a file that contains the class, image, and sound files for a Java application or applet gathered into a single file

A developer usually deploy his java project into a JAR file

Here are some steps to create a JAR file of a running Java project using eclipse


1. Right Click on the project and select Export



 2. Select on Java and JAR File




3. Browse the path where you want to save your file and enter file name



Here,you have created your First Executable JAR File

Now you can run this JAR file on diffent machine with following command

java -jar .jar


No comments:

Post a Comment