Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoSuchMethodError

 
Jing Liang
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have received Exception in thread "main" java.lang.NoSuchMethodError: FamilyTree.grandchildren when runing my code.

In my FamilyTree.class, I did write a grandchildren() method, I don't understand why is it saying no such method.

In order to run the FamilyTree.class, just compiled the FamilyTree.java and download Record, Person.class, Main.class and Birthday.class from
http://www.ecst.csuchico.edu/~jhliang/csci111/lab6/lab6.html

In the console type in java Main restore

Please help me out? Thanks

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic