将源附加到eclipse中的库中 [英] Attaching the source to a library in eclipse
问题描述
我下载了这个低级Java键盘挂钩库:
I downloaded this library for low level Java keyboard hooks:
http://ksquared.de/blog/2011/07/java-global-system-hook/
它的效果非常好,但是我想将源附加到它。源代码包含为.java文件,但是当我将它们附加到eclipse中的库时,它只需要一个jar或者zip文件。我试过压缩.java文件,但它没有工作。我以前从来没有附上过源代码,有人可以帮我吗?
It works great, but I want to attach the source to it. The source is included as .java files, but when I go to attach them to the library in eclipse it only wants a jar or zip file. I tried zipping the .java files but it didn't work. I've never attached a source before, can someone help me out?
推荐答案
您可以将源附加为zip文件,工作空间中的文件夹或外部文件夹。在您的项目中,右键单击并选择构建路径 - >配置构建路径
,然后在库选项卡中找到您的库并展开它。将有一行关于源附件。就这样,点击编辑
按钮,然后选择源文件的位置。
You can attach the source as either a zip file, a folder in the workspace or an external folder. In your project, right click and select Build Path -> Configure Build Path
and then in the libraries tab find your library and expand it. There will be a line there about source attachment. On that like, hit the Edit
button and then select the location of your source files.
这篇关于将源附加到eclipse中的库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!