Download Jsprite from here download.
now rum the following Command To sprite your images :
goto the directory where jsprite.jar is placed.
java -jar jsprite.jar -d “j-sprite”
This command will combine all imges of directory j-sprite to form one image and generate css file .Default image name is sprite.png
To use Command Line options Check This :Commands.