Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] [AspectJ] Why do I need aspectjrt.jar

Hi Sascha,

You need aspectjrt.jar to support the objects that AspectJ compilation has added into your application to facilitate your aspects.

During the compilation process the ajc command line tool weaves in certain constructs to make your aspects work. This weaving, whilst totally compatible with regular object-oriented Java, requires some additional support features that are available in the aspectjrt.jar and so, just like in any other application where you are using extra facilities beyond the standard libraries, you need to have those constructs available at runtime as well as compile time.

Hope this makes sense :-)

Russ

On 5 Aug 2004, at 21:36, Sascha Benkart wrote:

Hi,
 
I want to use AspectJ 1.2 for a webMethods Integration Server (Java 1.4, but without jce.jar) project. Unfortunately the server is not running if I add a package (a Java unit) compiled with AspectJ (using 100% of system resource).
AspectJ weaves the aspect code into the existing classes. Why do I need to add the aspectjrt.jar to my project on runtime? At compile time it is clear why I need the jar file.
 
Cheers!
Sascha

Back to the top