I don\'t get the exact method to do this. I want a method not for a single project for all projects in eclipse. Please tell me how to solve this problem.
Also, after doing one of these in the UI, you'll see your .classpath file has changed- that jar now has a sourcepath attribute.
It's probably easier to quit eclipse and edit the rest by hand. Remove the foo-source jar files as separate jars and add them as sourcepath attributes on each classpathentry element.