[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Invoking ajc from code
- From: "Wes Isberg" <wes@xxxxxxxxxxxxxx>
- Date: Tue, 7 Sep 2004 15:34:23 -0700
- Delivered-to: email@example.com
If I read you right...
The path to aspectjrt.jar should be included on the classpath passed
as an argument to ajc; see if that works.
> ------------Original Message------------
> From: Marc Hull <marc@xxxxxxxxxxxxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Date: Tue, Sep-7-2004 8:20 AM
> Subject: [aspectj-users] Invoking ajc from code
> I'm writing an Eclipse plug-in that needs to compile some files using
> ajc. Currently, I do this using Runtime.exec(..) to execute the ajc
> executeable and pass it the files and other options as arguments,
> however I was wondering if there's a better way of doing this, by
> invoking the compiler directly from within my code?
> I tried org.aspectj.tools.ajc.Main.main(..) and
> org.aspectj.ajdt.ajc.AjdtCommand.runCommand(..) but both generate the
> following error:
> error can't find type org.aspectj.lang.JoinPoint
> However, AspectJRT.jar is in my classpath - is this error appearing
> because I'm trying to invoke the compiler from within Eclipse?
> Is there any way to get rid of this error, or can you think of a better
> way of achieving the same results?
> Best wishes,
> Marc Hull
> aspectj-users mailing list