# Converting a plug-in project to an AspectJ project

To convert a Java plug-in project to an AspectJ plug-in project right click on that project, then select Convert to AspectJ Project. This will add the AspectJ nature to that project and replace the Java builder with the AspectJ builder. It will also ask you whether you want to add the AspectJ runtime plug-in, org.aspectj.runtime as a plug-in dependency. You will need to select Yes, unless you either have a dependency on the AJDE plug-in, or you know that you are not going to need the runtime.

To convert an AspectJ plug-in project back to a Java plug-in project right click on that project, then select AspectJ Tools > Remove AspectJ Nature. This will remove the AspectJ nature from that project and replace the AspectJ builder with the Java builder. It will also ask you whether you want to remove the AspectJ runtime plug-in dependency if you have one.

AspectJ projects
AspectJ builder

Creating AspectJ elements
Creating a new AspectJ project
Converting a Java project to an AspectJ project
Creating a new aspect