AspectJ 1.5 - Preparing BEA JRockit 7 and 8.1 JVM

If you are using BEA JRockit JVM versions 7 or 8.1, you need to add the -Xmanagement:class=org.aspectj.weaver.loadtime.JRockitAgent JVM switch, and add the infrared-aspectsystem-all-2.4.1.BETA.jar and infrared-agent-all-weblogic-2.4.1.BETA.jar jars to the server's CLASSPATH. These jars comes bundled with InfraRED distribution.

You need to edit the DOMAIN_HOME\startWeblogic.cmd(sh) or DOMAIN_HOME\startManagedWeblogic.cmd(sh) file to add:

          
@REM Integrate InfraRED with Weblogic running on JRockit
set JAVA_OPTIONS=-Xmanagement:class=org.aspectj.weaver.loadtime.JRockitAgent %JAVA_OPTIONS%
set CLASSPATH=%INFRARED_HOME%\infrared-aspectsystem-all-2.4.1.BETA.jar;%INFRARED_HOME%\infrared-agent-all-weblogic-2.4.1.BETA.jar;%CLASSPATH%        
                

You can add these lines anywhere in the file.