java lang ClassNotFoundException org aspectj weaver BCException

java lang ClassNotFoundException org aspectj weaver BCException

If you are getting below exception:

Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/BCException
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(
    at java.lang.Class.getConstructor0(
    at java.lang.Class.getDeclaredConstructor(
    ... 32 more
Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.BCException
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    ... 38 more



  • If you are using maven project please add below dependency in your pom.xml file:

or you could also check maven dependency and latest version from maven repository here and add accordingly.

  • If you are using eclipse project then add aspectj-weaverXXX.jar or latest version to your lib folder and include in class path.

Leave a Reply

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

I am not Robot *