473,395 Members | 1,987 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,395 software developers and data experts.

Error in midlet

Hi,
im getting this type of error in midlet program
package javax.microedition.midlet does not exist
package javax.microedition.io doaes not exist
Welcomeform.java:4: package javax.microedition.lcdui does not exis
import javax.microedition.lcdui.*;
^
Welcomeform.java: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_cldc\bin;
C:\J2ME\midp2.0fcs\bin;

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

plz give solution for this,
Thanks in Advance
Apr 5 '08 #1
5 3763
JosAH
11,448 Expert 8TB
Hi,
im getting this type of error in midlet program
package javax.microedition.midlet does not exist
package javax.microedition.io doaes not exist
Welcomeform.java:4: package javax.microedition.lcdui does not exis
import javax.microedition.lcdui.*;
^

...

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

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

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

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

kind regards,

Jos
Apr 5 '08 #2
ya correct i have cleared that error.
now im getting this error
javac WelcomeForm.java
WelcomeForm.java:16: cannot find symbol
symbol : class Voting
location: class voting.WelcomeForm
private Voting voting;
^
WelcomeForm.java:18: cannot find symbol
symbol : class Voting
location: class voting.WelcomeForm
public WelcomeForm(Voting a)
^
WelcomeForm.java:51: cannot find symbol
symbol : class ValidateForm
location: class voting.WelcomeForm
ValidateForm vform = new ValidateForm(voting,id.getStrin
g(),pwd.getString());
^
WelcomeForm.java:51: cannot find symbol
symbol : class ValidateForm
location: class voting.WelcomeForm
ValidateForm vform = new ValidateForm(voting,id.getStrin
g(),pwd.getString());
^
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,validateform,lastpage ,responselist,voting,optionlist,update,welcomeform
Apr 5 '08 #3
JosAH
11,448 Expert 8TB
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
Apr 5 '08 #4
i added the directories in classpath,but im getting 58 errors
Apr 5 '08 #5
i added the directories in classpath,but im getting 58 errors
Apr 5 '08 #6

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...
3
by: Nick | last post by:
hi, i'm running jar with a manifest.txt file jar cvfm welcome.jar manifest.txt welcome.class welcomeback.class and i get : >jar cvfm Welcome.jar manifest.txt Welcome.class...
0
by: Erica A Ramsey | last post by:
I get the following proguard error: java.io.IOException: The output jar is empty. Did you specify the proper '-keep' optons? Any idea what is wrong? Thanks, earamsey ------- actual ant...
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...
4
by: nickyeng | last post by:
I use Eclipse 3.2 which has j2me plug in. Previously i asked about encryption in this forum but not much help, so i decided to use bouncy castle encryption package. runtime error give me the...
4
by: surja | last post by:
Hi, I have written a code to download images from a server end desktop, but while running the code ,WTK is showing a runtime error " Create image from Byte array Uncaught exception...
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: NitinSawant | last post by:
Hello, I'm working with Netbeans Mobility Pack (Sun java wireless toolkit 2.5), I've created small midlet, I'm adding "MYID" custom property(Attribute) to the midlet, I know...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.