在一般情况下如何将 jar 文件附加到 Eclipse 中的源文件?

How to attach jar file to source file in Eclipse in a general case?

我是 Eclipse 的初学者。我在 Eclipse 中导入了 2 jar 文件 :
example.jar
example-source.jar

一般情况下如何在Eclipse中将jar文件附加到源文件?

顺便说一下,我没有通过右键单击 example.jar

看到 附加 Java 源 选项

在右键菜单select'Properties'然后看'Java Source Attachment'页面