I know this answer is very late, but for those who still read this:
Eclipse has this option. You probably just didn't notice it. I did not check with which version, Eclipse Luna is for sure.
Export --> Jar File- then do not click
Finish , but click Next . - You have more options.
- You may have to click
Next twice to go to the Main Class selection.
source share