pjbb1q
Last Updated: February 25, 2016
·
644
· jeantil

java 7 Files#probeContentType on OS X

Download this jar (source code) and make sure it is on your classpath (I put my copy in jre/lib/ext so it is always in my classpath for a given jdk) then copy the [sample mime.types] file to $HOME/.mime.types.

I have written a complete explanation of the problem on my blog.