Login  Register

Re: How do I add imageJ/fiji libraries to my project build path in Eclipse?

Posted by Burger Wilhelm on Jul 12, 2013; 2:07pm
URL: http://imagej.273.s1.nabble.com/How-do-I-add-imageJ-fiji-libraries-to-my-project-build-path-in-Eclipse-tp5003932p5003961.html

To add a JAR file that is outside your Eclipse project simply use the menu

Project -> Properties -> Java Build Path -> Libraries -> Add External Jars...

and navigate to the desired Jar file. This lets you add Java libraries from anywhere in your file system.

--Wilhelm



> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Number5
> Sent: Friday, July 12, 2013 12:33 AM
> To: [hidden email]
> Subject: How do I add imageJ/fiji libraries to my project build path in Eclipse?
>
> Hi, I'm new to ImageJ and I would like to know how to add the library to my
> build path (to use the functionality in my code)?
>
> I've found a lot of documentation about creating plug-ins, but found next to
> nothing about using it as a third-party library. From what I have seen, it
> looks like I should add the ij.jar file to the build path (like with other
> libraries), but something won't let me and I was wondering if someone could
> tell me what i'm doing wrong?
>
> Outside of Eclipse I can locate the jar file by right-clicking on the
> application and selecting 'show package contents', however in Eclipse I
> click on 'add external jars' and try the same thing, but only get the option
> 'quick look'. I can't seem to get to the jar file.
>
> I've also tried dragging the file from my hard drive into eclipse and
> copying the file without any luck. I'm running Mac OSX Mountain Lion and
> Eclipse Juno.
>
> Can anyone tell me what I'm doing wrong? or if you have another way of
> adding the library to a project please let me know!
>
> Thanks!
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/How-do-I-
> add-imageJ-fiji-libraries-to-my-project-build-path-in-Eclipse-tp5003932.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html