• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

missing method body error

 
rajesh villuri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i typed this program in netbeans

in netbeans, i am getting like this error for all programs

please help ,

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - missing method body, or declare abstract
at widget.Widget.<init>(Widget.java:10)
at widget.Widget.main(Widget.java:16)
Java Result: 1
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12102
30
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look VERY closely at this line, and let us know if you find something that perhaps shouldn't be there:

 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have added code tags, which you should always use, to your code, hoping it would make it look better (it does) and make the lines numbers visible, but the error Fred pointed out appears not to be on lines 10 and 16, but 6.
 
rajesh villuri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you ritchie
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic