java midlet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rpradeepa
    New Member
    • Apr 2008
    • 23

    java midlet

    HI,


    im preethi,can anybody help me out?
    My problem is:
    i compiled my midlet program in command prompt. im getting the following errors
    javac WelcomeForm.jav a
    WelcomeForm.jav a:14: cannot find symbol
    symbol : class Voting
    location: class WelcomeForm
    private Voting voting;
    ^
    WelcomeForm.jav a:16: cannot find symbol
    symbol : class Voting
    location: class WelcomeForm
    public WelcomeForm(Vot ing a)
    ^
    WelcomeForm.jav a:49: cannot find symbol
    symbol : class ValidateForm
    location: class WelcomeForm
    ValidateForm vform = new ValidateForm(vo ting,id.getStri n
    g(),pwd.getStri ng());
    ^
    WelcomeForm.jav a:49: cannot find symbol
    symbol : class ValidateForm
    location: class WelcomeForm
    ValidateForm vform = new ValidateForm(vo ting,id.getStri n
    g(),pwd.getStri ng());
    ^
    4 errors
    Thanks in Advance
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    You have to import a few classes, i.e. the compiler isn't psychic and can't find
    those classes on its own.

    kind regards,

    Jos

    Comment

    • rpradeepa
      New Member
      • Apr 2008
      • 23

      #3
      Originally posted by JosAH
      You have to import a few classes, i.e. the compiler isn't psychic and can't find
      those classes on its own.

      kind regards,

      Jos
      Hi,

      i imported the following classes,
      import java.io.*;
      import javax.microedit ion.midlet.*;
      import javax.microedit ion.io.*;
      import javax.microedit ion.lcdui.*;
      import java.util.*;

      Comment

      • rpradeepa
        New Member
        • Apr 2008
        • 23

        #4
        Hi,

        i imported the following classes,
        import java.io.*;
        import javax.microedit ion.midlet.*;
        import javax.microedit ion.io.*;
        import javax.microedit ion.lcdui.*;
        import java.util.*;

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by rpradeepa
          Hi,

          i imported the following classes,
          import java.io.*;
          import javax.microedit ion.midlet.*;
          import javax.microedit ion.io.*;
          import javax.microedit ion.lcdui.*;
          import java.util.*;
          Ok, in what package is the e.g. Voting class stored? You need to import that
          package. Check this for all the classes that could not be found.

          kind regards,

          Jos

          Comment

          Working...