gayathri (3) [Avatar] Offline
#1
HI
I have downloaded aspectj1.5.3 and installed in my system.I have set the path as well as class path,but when i tried to run the program i am getting an error .Can any one help me to resolve this problem.
steps which i followed are cited below
1.
Test.java
class Test{

public void helloWorld(){
System.out.println("Hello world");
}


public static void main(String args[]){
Test test= new Test();
test.helloWorld();
}
}
2.TestAspect.java
public aspect TestAspect{
pointcut outputLog():call(public void helloWorld());
before() : outputLog(){
System.out.println("Before call");
}
}

3. i compiled ajc Test.java TestAspect.java

pls help me

Thanks in advance
gayathri
agou (7) [Avatar] Offline
#2
Re: how to run dis aspectj program
Works fine with me. What kind of error do you get?
And why don't you try an IDE like eclipse to make your life easier.
gayathri (3) [Avatar] Offline
#3
Re: how to run dis aspectj program
k thanks i will try with eclipse IDE