wood burning stoves 2.0*
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>(MimetypesFileTypeMap.java:73)

can anyone help please..

Joe Ess

Joined: Oct 29, 2001
Posts: 8927

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

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Don't get me started about those stupid light bulbs.
subject: MimetypesFileTypeMap method getContentType