• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MimetypesFileTypeMap method getContentType

 
Rob Qas
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

thanks..
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look here. Sounds like classpath conflicts can be the cause.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic