[SOLVED] Re: NoSuchMethodError on Windows but not Ubuntu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[SOLVED] Re: NoSuchMethodError on Windows but not Ubuntu

Chris Pudney
G'day,

Thanks Johannes, the problem turned out to be similar to one you alluded to in an earlier response to one of my queries:
https://list.nih.gov/cgi-bin/wa.exe?A2=IMAGEJ;b8af747d.1303

Exif_Reader.jar is installed in one of ImageJ's plugins sub-folders. Exif_Reader.jar includes classes from an earlier version of metadata-extractor. Removing Exif_Reader.jar fixes the problem.

I guess Exif_Reader is part of the standard Windows ImageJ installation, whereas it's not included in the Ubuntu installation, which would explain why my plug-in worked on Ubuntu but not Vista.

Since my users rely on Exif_Reader I can't simply ask them to remove it, so it looks like I'll have to rewrite my filter to use the version of metadata-extractor packaged in Exif_Reader. The situation advised against previously :(

Other than rewriting ImageJ to use OSGi/Jigsaw I guess there's no way around this "classpath hell".

Thanks,
Chris.

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