Connecting Tech Pros Worldwide Forums | Help | Site Map

java midlet

Newbie
 
Join Date: Apr 2008
Posts: 23
#1: Apr 4 '08
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.java
WelcomeForm.java:14: cannot find symbol
symbol : class Voting
location: class WelcomeForm
private Voting voting;
^
WelcomeForm.java:16: cannot find symbol
symbol : class Voting
location: class WelcomeForm
public WelcomeForm(Voting a)
^
WelcomeForm.java:49: cannot find symbol
symbol : class ValidateForm
location: class WelcomeForm
ValidateForm vform = new ValidateForm(voting,id.getStrin
g(),pwd.getString());
^
WelcomeForm.java:49: cannot find symbol
symbol : class ValidateForm
location: class WelcomeForm
ValidateForm vform = new ValidateForm(voting,id.getStrin
g(),pwd.getString());
^
4 errors
Thanks in Advance

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Apr 4 '08

re: java midlet


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
Newbie
 
Join Date: Apr 2008
Posts: 23
#3: Apr 4 '08

re: java midlet


Quote:

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.microedition.midlet.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import java.util.*;
Newbie
 
Join Date: Apr 2008
Posts: 23
#4: Apr 4 '08

re: java midlet


Hi,

i imported the following classes,
import java.io.*;
import javax.microedition.midlet.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import java.util.*;
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#5: Apr 4 '08

re: java midlet


Quote:

Originally Posted by rpradeepa

Hi,

i imported the following classes,
import java.io.*;
import javax.microedition.midlet.*;
import javax.microedition.io.*;
import javax.microedition.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
Reply