[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] HELP: LTW: -javaagent=aspectjweaver.jaror-javaagent:aspectjweaver?
|
I downloaded the last developer build, now it works as you described.
Chapter 12 Load-Time Weaving in the Notebook instructs us to use the following syntax:
-javaagent=pathto/aspectjweaver.jar
It should be corrected.
Thanks again.
Guofeng
-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Ron Bodkin
Sent: Thursday, July 28, 2005 2:48 PM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] HELP: LTW: -javaagent=aspectjweaver.jaror-javaagent:aspectjweaver?
Hi Guofeng,
What build of AspectJ 5 are you using? Load time weaving is only available
in development builds of AspectJ 5 after M2.
We have been using -javagent:path/aspectjweaver.jar successfully with our
own builds from CVS HEAD.
________________________________________
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Guofeng Zhang
Sent: Wednesday, July 27, 2005 11:34 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] HELP: LTW: -javaagent=aspectjweaver.jar
or-javaagent:aspectjweaver?
Hi,
I am studying the load-time weaving.
If I use "-javaagent=aspectjweaver.jar", I got "Unrecognized option:
-javaagent=aspectjweaver.jar".
If I use "-javaagent:aspectjweaver.jar" in the following command line:
D:\workdir>D:\workdir\platform\jdk1.5.0\bin\java -cp
aspectjsamplesw.jar;aspectjsamples.jar;aspectjweaver.jar;aspectjrt.jar
-javaagent:aspectjweaver.jar helloworld.Hello
Exception in thread "main" java.lang.ClassNotFoundException:
aspectjweaver.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279)
at java.lang.ClassLoader.loadClass(ClassLoader.java:236)
at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationIm
pl.java:165)
FATAL ERROR in native method: processing of -javaagent failed
Can anyone kindly help me what's wrong with the above line?
aspectjsamplesw.jar contains the aspects, and aspectjsamples.jar is a java
application that want to be woven by aspectjsamplesw.jar.
Thanks
Guofeng
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users