AspectJ for NetBeans (AspectJForNetBeans-1.1rc2.zip)
throws "java.lang.NoClassDefFoundError:
org/aspectj/lang/Signature" exception with NetBeans 3.5
and with Sun ONE Studio 5, which is based on NetBeans
3.5. It compiles but won't run the simple example at
http://developers.sun.com/tools/javatools/articles/aspec
tJ/demo-aspect.zip, which is in the "Aspect-Oriented
Programming with Sun ONE Studio" article at
http://developers.sun.com/tools/javatools/articles/aspec
tJ.html.
Compile the example using the included logging.lst or
counter.lst file, then execute GiveGreeting.java to see
the failure.
AspectJ example
Logged In: YES
user_id=421358
Workaround: mount aspectjrt.jar as a NetBeans archive
filesystem, and the classpath problem goes away.
The cause is an change in NetBeans APIs discussed at
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/or
g/openide/doc-files/upgrade.html#3.5i-indirect-dep-cp
Logged In: YES
user_id=668282
I believe Vaughn has fixed this and submitted a patch to
aspectj-dev. Mik plans to incorporate the patch.
Logged In: YES
user_id=668886
Thanks to Vaughn for the patch!