java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor

tip

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Unitils does not work in maven
    via unitils by jux_
    ,
  • javax.tools.JavaCompiler Setting up classpath
    via Stack Overflow by Kuliu
    ,
  • NoClassDefFoundError ClassLoader
    via Stack Overflow by Kuliu
    ,
  • wsgen raising NoClassDefFoundError exceptions
    via Stack Overflow by Karl
    ,
    • java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103) at com.intellij.psi.impl.compiled.StubBuildingVisitor.visitField(StubBuildingVisitor.java:319) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at com.intellij.psi.impl.compiled.DefaultClsStubBuilderFactory.buildFileStub(DefaultClsStubBuilderFactory.java:45) at com.intellij.psi.impl.compiled.ClassFileStubBuilder.buildStubTree(ClassFileStubBuilder.java:45) at com.intellij.psi.stubs.StubTreeBuilder.buildStubTree(StubTreeBuilder.java:52) at com.intellij.psi.stubs.CoreStubTreeLoader.readOrBuild(CoreStubTreeLoader.java:46)

    Users with the same issue

    junior_cEngineer
    junior_cEngineer1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    andyglick
    andyglick2 times, last one,
    Unknown visitor1 times, last one,
    164 more bugmates