Question: jre has no source attachment?
Answer: Anoither way is to attach a src. zip file from a corresponding JDK to your JRE. In that same preferences dialog, edit the default JRE, and in the JRE System Libraries list, expand the rt. jar file entry, click the Source Attachment subentry and then click the Source Attachment button.