java lang NoClassDefFoundError org springframework util MimeType

java lang NoClassDefFoundError org springframework util MimeType

If you are working with spring framework and while running your code you get exception:

Exception in thread “main” java.lang.NoClassDefFoundError: org/springframework/util/MimeType

Solution: It means this jar has not been included in your project and this class available in “spring-core-4.1.6.RELEASE.jar”. Please include this jar in your class path and if you are using maven please add below dependency:

  • For further detail please read spring documentation here

One thought on “java lang NoClassDefFoundError org springframework util MimeType

Leave a Reply

Your email address will not be published. Required fields are marked *