[ome-devel] Sl4j warnings in Matlab w/bio-formats

Munro, Ian i.munro at imperial.ac.uk
Wed Aug 16 12:32:32 BST 2017


Hello All

After a recent upgrade to Matlab 2016b we started to see warnings like those below in our deployed Matlab application:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Applications/MATLAB/MATLAB_Runtime/v91/java/jarext/slf4j/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/xxxx/Library/Application%20Support/.mcrCache9.1/FLIMfi0/BFMatlab/bioformats_package.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

Should anyone else encounter this issue.
The solution was to add the following line to the build script.
(Thanks to Curtis Rueden IIRC for suggesting this)

zip -d bfmatlab/bioformats_package.jar 'org/slf4j/impl/*’

It occurs to me that making a .jar file without these components available for download somewhere, might
be something the OME team might like to consider.

Best Wishes

Ian






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20170816/340644a9/attachment.html>


More information about the ome-devel mailing list