I have 2 projects, A and B
project B have in his build path > libraries the class folder of A (Eclipse also recognized that there is a \"Source attachment\" and adde
Go to Project->Properties->Java Build Path.
In Order and Export keep all the src files on top and selected.
Eclipse will now pick .java over .class files