you can use eclipse
But following simple way also works
copy all your dependecy libaries to a folder lib
compile all your classes and copy to a folder say XYZ ( you can paste all of eclipse build directory)
add MANIFEST.MF in META-INF folder, at root structure of your jar ( right inside XYZ)
add following contesnt MANIFEST.MF
Main-Class: com.abc.xyz.MAINCLASS
Class-Path: lib/adv-display-common.jar lib/xyz.jar ---- (it is space separated)
now zip the contents of xyz ( not xyz folder,its content) using win-rar or zip, but give extention JAR
use following
java -jar JARFILENAME to run it.
It works on eclipse because all the dependencies are in classpath...