Getting examples to run [message #601223] |
Wed, 25 August 2010 19:30 |
tom murphy 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?
|
|
|
Powered by
FUDForum. Page generated in 0.01722 seconds