Attaching a source to a library in eclipse

I downloaded this library for low-level Java keyboards:

http://ksquared.de/blog/2011/07/java-global-system-hook/

It works great, but I want to attach a source to it. The source is included as .java files, but when I come to attach them to the library in eclipse, it only needs a jar or zip file. I tried making .java zip files, but that didn't work. I have never attached a source before, can anyone help me?

0
source share
1 answer

You can connect the source as 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 on the Libraries tab, find your library and expand it. There will be a line about installing the source. On this, click the button Edit, and then select the location of the source files.

+4
source

All Articles