[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Invoking ajc from code
|
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.
Wes
> ------------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
>
> Hello,
> 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
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>