jQuery in Action, 3rd edition
The moose likes I/O and Streams and the fly likes MimetypesFileTypeMap method getContentType Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "MimetypesFileTypeMap method getContentType" Watch "MimetypesFileTypeMap method getContentType" New topic

MimetypesFileTypeMap method getContentType

Rob Qas
Ranch Hand

Joined: Apr 10, 2006
Posts: 34
dear all,

i am trying to get the MIME content type of file using

and i got

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
at avax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:73)

can anyone help please..

Joe Ess

Joined: Oct 29, 2001
Posts: 9191

Have a look here. Sounds like classpath conflicts can be the cause.

[How To Ask Questions On JavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: MimetypesFileTypeMap method getContentType
It's not a secret anymore!