permaculture playing cards
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
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>(

can anyone help please..

Joe Ess

Joined: Oct 29, 2001
Posts: 9070

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

[How To Ask Questions On JavaRanch]
subject: MimetypesFileTypeMap method getContentType