Which
Java are you using? The one from Oracle, or Open JDK? How did you install it, via your package manager? (Generally speaking, if you installed the Oracle JDK from the Oracle web site, then specifying that JDK as the default JRE in Eclipse should get the sources linked. If you installed something else, you'll need to let us know what.)