maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Fay <>
Subject Re: Get "java.lang.NoClassDefFoundError" though the class is in the classpath
Date Wed, 07 Sep 2011 14:18:49 GMT
> I know the class "com.sun.mirror.apt.AnnotationProcessorFactory" is in the tools.jar so
I've add the dependency in the pom.xml as follow:
>             <systemPath>C:/Program Files/Java/jdk1.7.0/lib/tools.jar</systemPath>
> As I run mvn dependency:build-classpath to check the included jars I can see the tools.jar
in included.

You probably don't want this in your build classpath but perhaps added
to the classpath of the jaxws plugin, right? Move the dependency there
and try again with mvn -X to see the full classpath used for that
plugin execution.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message