pjbb1q
Last Updated: February 25, 2016
·
600
· jeantil
75da740d43c5780539214f24ce1148a6

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.

Say Thanks
Respond