Search code examples
javaeclipseimagej

How can I add ImageJ to my build path in Eclipse, and where can I find the ImageJ .jar file?


I am extremely novice when it comes to using external libraries in my code. I have been looking for an embarrassing amount of time on how to actually add this particular library to my build path.

My main issue is that I cannot find the .jar file, or I don't know how to go from a cloned git repository to a jar file.

Any help would be immensely appreciated.

If it makes a difference, I am interested this Non Local Means Denoise Class, along with a few others.


Solution

  • If you have the source code for that project, you can build it yourself (if, for instance, you're using maven just do "mvn install" and then look in the "target" directory for the jar).

    Regardless of how you get the jar, once you have it you can add it to the project in Eclipse by right-clicking on the project, going to "build path"... "configure build path" and then adding it as a library.