Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MimetypesFileTypeMap method getContentType  RSS feed

 
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: 9425
12
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
Boost this thread!