• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

bizarre! please somebody help me

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what's wrong with this?why won't complile?
package org.mypackage.hello;

/**
*
* @author Gebruiker
*/
public class NameHandler {

String name;

public NameHandler()netbeans says error is here

; expected or missing methode body or declary abstract

but in the own netbeans tutorial this is supposed to be a constructor.
name = null;
}

i took this exemple from netbeans help page to run the step two of tutorial about web services.but in my IDE there is a compile error about this constructor public NameHandler()

does somebody help me? the tutorial is here http://www.netbeans.org/kb/60/web/quickstart-webapps.html#setting
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's supposed to be



as shown a little bit later. You are missing the braces around the constructor body.
[ May 02, 2008: Message edited by: Peer Reynders ]
 
Agostinho Felisberto
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you right.thank you
reply
    Bookmark Topic Watch Topic
  • New Topic