wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes missing method body error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "missing method body error" Watch "missing method body error" New topic
Author

missing method body error

rajesh villuri
Greenhorn

Joined: Apr 06, 2013
Posts: 4
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

Joined: Oct 02, 2003
Posts: 11499
    
  16

look VERY closely at this line, and let us know if you find something that perhaps shouldn't be there:



There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
And welcome to the Ranch
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
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

Joined: Apr 06, 2013
Posts: 4
thank you ritchie
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: missing method body error