Your command works in a shell because the shell interprets *.java to turn it
into something meaningful. Unless you have a file with an actual * in its
name, your command will not work. Try using File.list(...) and passing each
result into Runtime.exec( new String[] { ³ajc², filename } ).
From: Fayezin <[EMAIL PROTECTED]>
Reply-To: <[email protected]>
Date: Tue, 27 Feb 2007 00:36:28 +0000
To: <[email protected]>
Subject: Re: [aspectj-users] Compile AspectJ programs from another Java
program
Hi,
Thanks for the reply.
Runtime.exec("ajc account/*.java") does not work and throws a runtime
exception.
My guess is that it does not support command line arguments like the command
prompt.
Any ideas?
Thanks,
Fayezin
On 26/02/07, Eric Bodden <[EMAIL PROTECTED]> wrote:
> Hmmm, Runtime.exec(..) should help, if it comes to the worst.
>
> Eric
>
> On 2/26/07, Fayezin < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> > wrote:
>> > Hello,
>> >
>> > I need to compile aspectJ programs using ajc 1.0 (not 1.5) from within
>> > a java program, but I cant seem to figure out how.
>> >
>> >
>> > Please help me to solve this problem.
>> >
>> > Thanks,
>> >
>> > Fayezin
>> > _______________________________________________
>> > aspectj-users mailing list
>> > [email protected]
>> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
>> >
>> >
>
>
> --
> Eric Bodden
> Sable Research Group
> McGill University, Montréal, Canada
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users