[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Problem with iajc and jdk 1.4.1
|
Hello,
I am trying to use iajc in a maven build script. I keep getting the
following error:
[ERROR] java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl
This looks very similar to the problem described in this thread:
http://www.mail-archive.com/ant-user@xxxxxxxxxxxxxxxxxx/msg21990.html
Here is my maven task:
<!-- =================================================== -->
<!-- performs aspectj compilation of compiled code -->
<!-- =================================================== -->
<goal name="virtualmock:compile:aspectj">
<taskdef
resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement location="${lib.dir}/aspectjtools.jar"/>
</classpath>
</taskdef>
<iajc outjar="${aspectj.output.jarfile}"
fork="true"
copyInjars="true"
sourceRootCopyFilter="**/CVS/*,**/*.java" >
<injars>
<pathelement location="${jarfile}"/>
<pathelement location="${test.jarfile}"/>
</injars>
<classpath>
<pathelement location="${lib.dir}/aspectjrt.jar"/>
</classpath>
</iajc>
</goal>
Thanks in advance,
Chad Woolley