the jar file rt.jar has no source attachment

解决方法:
rt的source在jdk目录的src.zip文件里,找到jdk目录下的src.zip,添加就行了。

原文地址:https://www.cnblogs.com/sparkbj/p/5802744.html