Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] aspectj1.2 error


Hi Jaime,

Did you have the <aspectj install dir>/lib/aspectjrt.jar runtime library on the CLASSPATH when you attempted your compile ?

Best regards,
George
________________________________________
George C. Harley




Jaime Nino <jaime@xxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx

14/06/2004 16:28

Please respond to
aspectj-users

To
aspectj-users@xxxxxxxxxxx
cc
Subject
[aspectj-users] aspectj1.2 error





I just installed aspectj1.2 and while testing it I received the
following error:

   error can't find type org.aspectj.lang.JoinPoint

I double checked the file with the aspect defined but could not see any
error in it.  The error sounds more like a library
error to me.  Do I have to make any explicit aspectj imports?

Thanks for your help.

PS: Here are the files involved:

class Test {

   public void testMethod(){
      System.out.println("Test Method.");
   }

   public static void main(String args[]) {
     Test test = new Test();
     test.testMethod();
   }
}

public aspect TestAspect {

   pointcut callTestMethod() : call(public void Test.test*(..));

   before : callTestMethod() {
      System.out.println("Before call.");
   }

   after : callTestMethod() {
   System.out.println("After call.");
   }
}

--
====================================================================
                Jaime Nino
                Computer Science Dept. Univ of New Orleans, New Orleans La 70148
                voice : 504-280-7362    fax: 504-280-7228
====================================================================
               
               


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


Back to the top