Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Getting examples to run
Getting examples to run [message #601223] Wed, 25 August 2010 19:30
tom murphy is currently offline tom murphyFriend
Messages: 5
Registered: July 2009
Junior Member
fixes 'Selection does not contain a main type' error.

Install the AspectJ Development Tools, select new.../other... then open the AspectJ folder, open the AspectJ examples folder, install an example (I used the Tracing example).

Next, use the new... wizard to create an aspect (.aj) file in the top level source folder (tracing in my case). Then copy the aspectJ code from one of the sub folders (in my case, I copied the code in tracing/version1/TraceMyClasses.aj) into your new aspect file. Then, expand the .aj file in the explorer, right click on the *main* method, select run as *java* application. Obvious isn't it?
Previous Topic:Differences between java compiler and aspectJ compiler
Next Topic:update site including org.eclipse.contribution.weaving produces many plugins
Goto Forum:

Current Time: Wed May 23 20:51:22 GMT 2018

Powered by FUDForum. Page generated in 0.03145 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top