java.lang.NoClassDefFoundError

org/apache/tools/ant/Project

Samebug tips5

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19572

  • via Google Groups by Mark, 6 months ago
    org/apache/tools/ant/Project
  • via GitHub by ksprash
    , 1 year ago
    org/apache/tools/ant/Project
  • org/apache/tools/ant/Project
  • Stack trace

    • java.lang.NoClassDefFoundError: org/apache/tools/ant/Project at code.apply(<>) at yeti.lang.compiler.eval._1(eval.yeti:96) at yeti.lang.compiler.eval.execClass(eval.yeti:74) at yeti.lang.compiler.eval$evaluateYetiCode$._0(eval.yeti:468) at yeti.lang.compiler.eval$evaluateYetiCode$.apply(eval.yeti:444) at yeti.lang.Fun2_.apply(Unknown Source) at yeti.lang.compiler.yeti.repl(yeti.yeti:58) at yeti.lang.compiler.yeti.main(yeti.yeti:206) Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.Project at java.lang.ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at yeti.lang.compiler.Loader.loadClass(CodeWriter.java:80) at java.lang.ClassLoader.loadClass(Unknown Source) ... 8 more

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 1 year ago
    2 times, 9 hours ago
    17 times, 4 days ago
    2 times, 4 days ago
    Unknown user
    Once, 1 week ago
    1933 more bugmates