Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Aspect Path, InPath, Classpath...what's wrong?

Looks like I found the answer to my own problem.  I
needed to put the SSC Applet/bin class folder as a
Library in the Score Test project so that it could see
these class files at run time.


Eyon


--- Eyon Land <myjavaland@xxxxxxxxx> wrote:

> All,
> 
> I have a class called com.ray.score.GoalType in a
> library called scorelib.jar located in project
> "Score
> Library"
> I have an aspect called
> com.ray.score.ui.GoalTypeWithListModel.aj located in
> a
> project called "SSC Applet"
> I have a junit test (MainAppletTest.java) in another
> project called "Score Test".
> 
> scorelib.jar is in the InPath
> The source directory of "SSC Applet" is in the
> Aspect
> Path.
> "Score Test" is set to depend on "Score Library" and
> "SSC Applet"
> 
> For some reason my unit test compiles but gives me
> an
> exception.  Does anyone see what I did wrong?
> 
> Exception in thread "main"
> java.lang.NoSuchMethodError:
>
com.ray.score.util.GoalType.listModel()Lcom/ray/score/ui/GoalTypeListModel;
> 	at
>
com.ray.score.ui.GoalTypeWithListModel.ajc$interMethodDispatch1$com_ray_score_ui_GoalTypeWithListModel$com_ray_score_util_GoalType$listModel(GoalTypeWithListModel.aj)
> 	at
>
com.ray.score.ui.ListPanel.getJList(ListPanel.java:157)
> 	at
>
com.ray.score.ui.ListPanel.initialize(ListPanel.java:50)
> 	at
> com.ray.score.ui.ListPanel.<init>(ListPanel.java:38)
> 	at
>
com.ray.score.ui.WireFramework.ajc$afterReturning$com_ray_score_ui_WireFramework$3$97cf6f89(WireFramework.aj:137)
> 	at
> com.ray.score.ui.TabPanel.<init>(TabPanel.java:17)
> 	at
>
com.ray.score.ui.WireFramework.ajc$afterReturning$com_ray_score_ui_WireFramework$1$55893e05(WireFramework.aj:84)
> 	at
>
com.ray.score.ui.MainApplet.<init>(MainApplet.java:57)
> 	at
>
com.ray.score.ui.MainAppletTest.main(MainAppletTest.java:18)
> 
> 
> 
> 
> 
> 		
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


Back to the top