It seems to be that there are two different ways of attaching source jar to a java library in eclipse:
Right-click on jar file in
Referenced Libraries
, then click onProperties > Java Source Attachment
.Go to
Debug Configuration
, then click onSource > Add... > Achieve
But it appears that I need to do both for eclipse to behave properly. If I do step 1 only, then I can see the source code, but if I put a breakpoint in the source and start the debugger then it says source code missing. If I do step 2 only, then it shows the code while debugging but not if I press F3 in a library method.
Why does eclipse require that the source code path be specified twice? Am I missing something?