aspose file tools*
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
Author

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..

thanks..
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

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


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MimetypesFileTypeMap method getContentType