[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] can't get simple aspectj example to work

Put aspectjrt.jar in your classpath.

-Ramnivas

George P Nychis wrote:

Hi,

I found the following simple AspectJ example floating on the net:
http://www.cs.wustl.edu/~mdeters/seminar/fall2002/notes/code/Trace_v2.html

I tried following it but get:
gnychis@monster ~/school/AspectJ $ ajc Trace_v2.aj HelloWorld.java
gnychis@monster ~/school/AspectJ $ java HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException
       at HelloWorld.<clinit>(HelloWorld.java)

Can anyone provide me any advice/help?

Thanks!
George

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users