I use ant for creating .jar files in Eclipse.
ant
I need to generate jar for my project which also contains source code along with the class file. How do w
Simply copy the source files into the directory you're using for your jar creation. I've done it like this (notice the copy inside compile):
copy
compile