473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.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
Apr 4 '08 #1
4 1411
JosAH
11,448 Expert 8TB
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
Apr 4 '08 #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
Hi,

i imported the following classes,
import java.io.*;
import javax.microedition.midlet.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import java.util.*;
Apr 4 '08 #3
Hi,

i imported the following classes,
import java.io.*;
import javax.microedition.midlet.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import java.util.*;
Apr 4 '08 #4
JosAH
11,448 Expert 8TB
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
Apr 4 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: shmoove | last post by:
Hi all, I'm a J2ME developer, with very little experience in WAP. I want to know if the following is possible on Nokia terminals: I would like to have a link in a WML page, that when it is pressed...
0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
6
by: nickyeng | last post by:
i have a midlet which will generate a string (message ) and send to our gateway. but before sending, i will need to encrypt the string. i've checked anywhere in internet but couldn't find j2me...
1
by: nickyeng | last post by:
i have a midlet which will generate a string (message ) and send to our gateway. but before sending, i will need to encrypt the string. i've checked anywhere in internet but couldn't find j2me...
0
by: mynameissina | last post by:
hello out there, assume jar file of my mobile project lives in c:/netbeansprojects/mymobileprojects/project1/dist/app.jar now i need a simple midlet that its only duty is to creat a text file say in...
3
by: rpradeepa | last post by:
HI, what is the procedure to run the midlet program? Thanks in Advance
3
by: rpradeepa | last post by:
Hi, How to run the midlet program in mobile device? Thanks in advance
2
by: josephx | last post by:
Hello, I got some of these errors listed below after executing an HTTP Post MIDlet on CLDC/MIDP platform, "Nokia S40 DP 2.0 SDK 1.1" and "S40 5th Edition SDK Feature Pack 1" and even for S60's...
0
by: simsimlhr | last post by:
I want to load form inherited from Midlet(j2me) in lwuit form.Is there any way, i cannot convert the midlet into lwuit.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.