Posted on 2007-10-13
Last Modified: 2013-12-29
I'm doing a project in J2ME , i get the following error message when i compile my class file this is a huge project please give me the solution .
related website any.
Below is my code:-
TextEvent tevent = (TextEvent)event;
while (!(event instanceof EndDocument));        

when i build, the error msg is :-
438: cannot resolve symbol symbol  : class TextEvent  
location: class org.GetData
 TextEvent tevent = (TextEvent)event;
462: cannot resolve symbol symbol  : class EndDocument
location: class org.GetData
 while (!(event instanceof EndDocument));

can u pls tell me what's wrong for this two coding?

Question by:dev_kittu
    LVL 92

    Expert Comment

    sounds like you don't have the required imports


    import java.awt.event.TextEvent;

    Author Comment

    i get the same error , after importing textevent class .  My wireless tool kit unable to find the class even though it was imported.

    hi expert , does KXML package holds textevent class?
    LVL 12

    Accepted Solution

    First of all - I would advise you to use eclipse along with the EclipseME plugin for developing your J2ME code.

    All you need to do is create your project, and add the required libraries into the build path. The reason for your failure could be because you have not included the libraries including the said classes to your classpath.

    The reasonf or that is because AWT is a prt of JAVA NOT J2ME. You cannot use AWT for J2Me. Instead you need to use the lcdui package classes.

    Read this here for the solution :

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    This is about my first experience with programming Arduino.
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now