MaintainJ Blog

April 19, 2012

Unable to continue, this version of AspectJ supports classes built with weaver version 6.0 but the class XXX is version 7.0

Filed under: Uncategorized — maintainj @ 10:19 am

You might see this kind of exception when you start your application with MaintainJ. The reason for this exception is nicely described by the AspectJ lead Andy in his blog.

This exception might occur if you are already using AspectJ in your application, which may conflict with the version of AspectJ that MaintainJ is using. Below are the steps to resolve this:

1. Search if you have aspectjrt.jar or aspectjweaver.jar in your application classpath. Remove them if so.

2. MaintainJ already places aspectjweaver.jar at a higher level in the classpath. So, you don’t need it in your application. aspectjweaver.jar has all the classes in aspectjrt.jar and so you can safely remove it from your classpath.

Do those steps and restart your application. If you still have any problems, contact me.

–Choudary Kothapalli.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Powered by WordPress