2 Replies Latest reply on Jan 16, 2018 8:34 AM by desmond95

    Roaster 2.20.1.final: java.lang.NoClassDefFoundError:

    desmond95

      Hello guys,

       

      I have an issue with Roaster 2.20.1.final.. when I try to run this code..

       

      final JavaClassSource javaClass = Roaster.create(JavaClassSource.class);

       

      .. i get following error:

       

      java.lang.NoClassDefFoundError: org/jboss/forge/roaster/model/source/JavaClassSource

       

      My pom.xml looks like:

       

      <properties>

             <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

             <version.roaster>2.20.1.Final</version.roaster>

      </properties>

       

      <dependencies>

             <dependency>

                  <groupId>org.jboss.forge.roaster</groupId>

                  <artifactId>roaster-api</artifactId>

                  <version>${version.roaster}</version>

             </dependency>

             <dependency>

                  <groupId>org.jboss.forge.roaster</groupId>

                  <artifactId>roaster-jdt</artifactId>

                  <version>${version.roaster}</version>

                  <scope>runtime</scope>

            </dependency>

      </dependencies>

       

       

      I checked the build path of my project and it looks fine.

      When I'm using the version "2.20.0.final" the error is not present.

      I'm using JDK 1.8 but it doesn't work in 1.7 as well.

      The compiler knows the right class (since its not marking any errors)

       

      Did I miss something in my properties?

      Thank you very much for your help!