Skip to main content

[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

Is there a prefered method to do this in linux?  I don't want to perminately add it.  

monster hedpe # slocate aspectjrt.jar
/usr/share/aspectj/lib/aspectjrt.jar


> 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.h
>> tml
>> 
>> 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
>> 
>> 
>> 
> _______________________________________________ aspectj-users mailing list
>  aspectj-users@xxxxxxxxxxx 
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 


-- 
George Nychis
INI MSIN Masters Student,
Carnegie Mellon University
http://www.andrew.cmu.edu/user/gnychis/



Back to the top