This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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
Pie
Posts: 9258
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