Error in midlet

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

    Error in midlet

    Hi,
    im getting this type of error in midlet program
    package javax.microedit ion.midlet does not exist
    package javax.microedit ion.io doaes not exist
    Welcomeform.jav a:4: package javax.microedit ion.lcdui does not exis
    import javax.microedit ion.lcdui.*;
    ^
    Welcomeform.jav a:8: cannot find symbol
    symbol: class Form
    public class WelcomeForm extends Form implements CommandListener

    i have set the environment variable for path C:\JSDK2.0\bin;
    C:\Program Files\Java\jdk1 .6.0_05\bin;
    C:\Program Files\Hewlett-Packard\Toolbox \ApacheTomcat4. 0\bin;
    C:\J2ME\bin;
    C:\J2ME\j2me_cl dc\bin;
    C:\J2ME\midp2.0 fcs\bin;

    for class path C:\Program Files\Java\jdk1 .6.0_05\bin;
    C:\JSDK2.0\lib\ jsdk.jar;
    C:\J2ME\midp2.0 fcs\classes\jav ax\microedition ;

    plz give solution for this,
    Thanks in Advance
    Last edited by rpradeepa; Apr 5 '08, 06:45 AM. Reason: mistake in sentence
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by rpradeepa
    Hi,
    im getting this type of error in midlet program
    package javax.microedit ion.midlet does not exist
    package javax.microedit ion.io doaes not exist
    Welcomeform.jav a:4: package javax.microedit ion.lcdui does not exis
    import javax.microedit ion.lcdui.*;
    ^

    ...

    for class path C:\Program Files\Java\jdk1 .6.0_05\bin;
    C:\JSDK2.0\lib\ jsdk.jar;
    C:\J2ME\midp2.0 fcs\classes\jav ax\microedition ;

    plz give solution for this,
    Thanks in Advance
    Just a guess: shouldn't that last classpath component be:

    C:\J2ME\midp2.0 fcs\classes\;

    because 'javax' and 'microedition' are packages by themselves ...

    kind regards,

    Jos

    Comment

    • rpradeepa
      New Member
      • Apr 2008
      • 23

      #3
      ya correct i have cleared that error.
      now im getting this error
      javac WelcomeForm.jav a
      WelcomeForm.jav a:16: cannot find symbol
      symbol : class Voting
      location: class voting.WelcomeF orm
      private Voting voting;
      ^
      WelcomeForm.jav a:18: cannot find symbol
      symbol : class Voting
      location: class voting.WelcomeF orm
      public WelcomeForm(Vot ing a)
      ^
      WelcomeForm.jav a:51: cannot find symbol
      symbol : class ValidateForm
      location: class voting.WelcomeF orm
      ValidateForm vform = new ValidateForm(vo ting,id.getStri n
      g(),pwd.getStri ng());
      ^
      WelcomeForm.jav a:51: cannot find symbol
      symbol : class ValidateForm
      location: class voting.WelcomeF orm
      ValidateForm vform = new ValidateForm(vo ting,id.getStri n
      g(),pwd.getStri ng());
      ^
      4 errors
      This is path where i stored my files
      D:\voting\src
      In that src folder im having files such as firstlist.java, publicopinion,v alidateform,las tpage,responsel ist,voting,opti onlist,update,w elcomeform

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by rpradeepa
        ya correct i have cleared that error.
        now im getting this error

        [ ... ]
        Well, you should add the directories where you store your classes to your
        classpath as well; otherwise, as you can see, the compiler doesn't know where
        to look for them and it can't find them.

        kind regards,

        Jos

        Comment

        • rpradeepa
          New Member
          • Apr 2008
          • 23

          #5
          i added the directories in classpath,but im getting 58 errors

          Comment

          • rpradeepa
            New Member
            • Apr 2008
            • 23

            #6
            i added the directories in classpath,but im getting 58 errors

            Comment

            Working...