Create Executable jar file(easiest way) from Eclipse

If you don’t have eclipse you can download at :    http://www.eclipse.org/downloads/

You can download JDK at : http://www.oracle.com/technetwork/java/javase/downloads/index.html

Step 1 : Right click the project from which you want to create jar file

STEP 2 : Click Export  .jar from java

 

 

 

 

 

 

 

STEP 3 : Choose Export destination as Java

jar from eclipse 2

 

 

 

 

 

 

 

 

STEP 4 : Select Runnable JAR file  under Java

jar from eclipse

 

 

 

 

 

 

STEP 5 : Select a Launch configuration i.e select the main class

jar from eclipse launch config

 

 

 

STEP 6 : Select the destination where u want to create JAR file

STEP 7 : Select Extract required libraries into Generated JAR file under Library Handling  

Library handling

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s