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

Sorry to spam, problem solved

thanks guys

> And i still seem to get the error still...
> 
> gnychis@monster ~/school/AspectJ/new $ echo $PATH 
> /usr/share/aspectj/lib/:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-p
> c-linux-gnu/gcc-bin/3.4.5:/opt/blackdown-jdk-1.4.2.02/bin:/opt/blackdown-
> jdk-1.4.2.02/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/bin:/usr/kde/3.3/bin 
> gnychis@monster ~/school/AspectJ/new $ ll /usr/share/aspectj/lib/ total
> 5341 -rw-r--r--  1 root root   34255 Jan 26 23:46 aspectjrt.jar -rw-r--r--
> 1 root root 5423184 Jan 26 23:46 aspectjtools.jar gnychis@monster
> ~/school/AspectJ/new $ ajc Trace_v2.aj HelloWorld.java gnychis@monster
> ~/school/AspectJ/new $ java HelloWorld Exception in thread "main"
> java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException at
> HelloWorld.<clinit>(HelloWorld.java)
> 
> 
>> Also, download the examples and the documentation from
>> 
>> http://eclipse.org/aspectj
>> 
>> They're designed to get people up and running fast.  E.g., your 
>> NoClassDefFoundError is mentioned in the FAQ:
>> 
>> http://www.eclipse.org/aspectj/doc/released/faq.html#q:noaspectbound
>> 
>> Wes
>> 
>>> ------------Original Message------------ From: Ramnivas Laddad 
>>> <ramnivas@xxxxxxxxxxxxxxx> To: aspectj-users@xxxxxxxxxxx Date: Thu, 
>>> Jan-26-2006 9:20 PM Subject: 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
>>>> 
>>>> 
>>>> 
>>> _______________________________________________ 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/
> 
> _______________________________________________ aspectj-users mailing list
>  aspectj-users@xxxxxxxxxxx 
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 



Back to the top