Login  Register

Re: Install plugin with dependencies in Fiji

Posted by ctrueden on Nov 19, 2013; 4:14pm
URL: http://imagej.273.s1.nabble.com/Install-plugin-with-dependencies-in-Fiji-tp5005607p5005611.html

Hi Christophe,

> Can drop all these into Fiji "jars" folder, hopping it will be sorted
> out ?

No, Fiji will not be able to "sort out" all the duplicate JARs
automatically. Why not add only those dependencies not already present?

Better, once you get it working, why not create a personal update site [1]
and upload the GDSC plugins there, so that others can easily install them
into Fiji without going through the dependency management hassle themselves?

> I don't know how to detect if the version between the GDSC plugins and
> the one included in Fiji are different, and what to do if this is the
> case...

It must be done on a case by case basis, since every library is developed
according to different standards. For some projects, e.g. 2.0 and 2.1 may
be incompatible, but for others, 2.1.0 may be backwards compatible with
2.0.0. For SciJava-related work [2] (including ImageJ2, ImgLib2, SCIFIO,
etc.) we use Semantic Versioning [3], which promises backwards
compatibility unless the major version number is incremented.

But in general, for each dependency, you will have to verify this yourself.
Probably easiest to just drop in only the missing dependencies, and see if
it works. And if you get a NoSuchMethodError, look which library produced
it, then try upgrading only that library. With an ImageJ update site, you
can "shadow" one version of a library with a different one.

Regards,
Curtis

[1] http://fiji.sc/Personal_Update_Sites#Add_your_personal_update_site
[2] http://scijava.org/
[3] http://semver.org/



On Tue, Nov 19, 2013 at 9:39 AM, Christophe Leterrier <
[hidden email]> wrote:

> Hi,
>
> I'd like to install Alex Herbert's GDSC suite of ImageJ plugins in Fiji :
>
> http://www.sussex.ac.uk/gdsc/intranet/microscopy/imagej/gdsc_plugins#install
>
> However, looking at the dependencies for these, there seems to be a partial
> overlap with stuff that is already in Fiji:
> beansbinding-1.2.1.jar
> commons-math3-3.1.1.jar
> ejml-0.23.jar
> imagescience.jar
> xstream-1.4.4.jar
>
> How should I proceed to avoid conflicts? Can drop all these into Fiji
> "jars" folder, hopping it will be sorted out ? I don't know how to detect
> if the version between the GDSC plugins and the one included in Fiji are
> different, and what to do if this is the case...
>
> Thanks for your help,
>
> Christophe
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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