Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Problem with Load-Time Weaving ?

Hi David

You have read about that in the AspectJ 5 Developer Notebook, which is
a work in progress. There is no yet such an agent in the available
builds.

You may still use limited load time weaving capabilities provided by
the "aj" script.

Alex


On Wed, 09 Mar 2005 17:21:23 +1300, David Pearce
<david.pearce@xxxxxxxxxxxxx> wrote:
> Hi,
> 
> I've been trying to use load-time weaving via the javaagent.  The docs say:
> 
> " When using JDK 1.5 the JVMTI agent can be used by starting the JVM
> with the following option:
> 
>                         -javaagent=aspectjweaver.jar"
> 
> Firstly, this is wrong as it should be "-javaagent:aspectjweaver.jar".
> More importantly, however, is that it doesn't seem to work.  The error
> message I get is:
> 
>  > Failed to load Premain-Class manifest attribute from c:/Documents and
>  > Settings/djp/My Documents/src/aspectj1.5/lib/aspectjweaver.jar
>  > Error occurred during initialization of VM
>  > agent library failed to init: instrument
> 
> With my limited knowledge of how this is supposed to work, I'm guessing
> this means there isn't a premain method anywhere in the jar file.  Which
> suggests that this feature is yet to be implemented.  Is this right or
> have I missed something?
> 
> Cheers,
> 
> David J. Pearce
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top