NoClassDefFoundError: Midlets on iPAQ

Hi,
I am a novice to midlet programming. I installed PersonaJava
on my iPAQ (Pocket PC) successfully. the examples that come with the installation run fine. I am not able to run midlets on iPAQ.
the error i am getting at Java Console:
"NoClassDefFoundError: javax.microedition/lcdui/CommandListener"
Midelets run fine on emulator provided by J2ME tool kit. I dropped
the midpapi.jar file that comes with this tool kit into the "lib"
directory on iPAQ, where PersonalJava is installed, but it did not help me either. Any pointers will be gr8.
Thanks for your time,
-Venu Madhav Singh K

Thanks for response.
the evm, u were talking about is an Jeode embedded virtual machine
from Insignia. I am using JVM provided by PersonalJava.
In order to run Midlets on PocketPC(iPAQ), there is a api
that enables PersonalJava devices to run Midlets.
Look at the link below:
http://me4se.org/index.html
I installed, me4se.jar and png.jar and tested a midelt.
I think it works except that i was havving some problems with
GUI support (I did not install Swing components). Well this
is just a beginning, i will post more as i succeed. Please post
if any one has happy experience with running Midlets in PocketPC.
GoodLuck,
Venu Madhav Singh K

Similar Messages

  • Can i run the MIDlet on IPAQ PDA / Windows CE??

    Hi,
    Is it anyone know can MIDlet application run on the IPAQ PDA which run the Microsoft CE OS?? As i know the MIDlet is run well on the Palm OS. Is it i need another third party to do so?
    Please advise ...
    Thank in advance ..
    SL

    Hi,
    I don't know if there is a Sun's KVM implementation for iPAQ, but I know that the IBM's j9 VM can run MIDlets.
    To do so, you'll need IBM's Websphere Studio Device Developer, and follow the installation instructions to the device..that's the only way I could port my MIDlets to iPAQ.
    Ricardo

  • Error while executing the midlet ----pleasehelp

    Hi everyone,
    I am new to webservices, I am trying to execute a webservice from a midlet. Iam getting the below error.
    java.lang.NoClassDefFoundError: org/kxmlrpc/XmlRpcClient
         at kxmlrpc_demo.commandAction(+49)
         at javax.microedition.lcdui.List.callKeyPressed(+80)
         at javax.microedition.lcdui.Display$DisplayAccessor.keyEvent(+198)
         at javax.microedition.lcdui.Display$DisplayManagerImpl.keyEvent(+11)
         at com.sun.midp.lcdui.DefaultEventHandler.keyEvent(+121)
         at com.sun.midp.lcdui.AutomatedEventHandler.keyEvent(+210)
         at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+178)
    Below is my midlet code.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    import java.util.*;
    import org.kxmlrpc.*;
    public class MyMidlet extends MIDlet implements CommandListener {
         private List list;
         private Command exitCommand;
         private String[] menuItems;
         private Display display;
         private Alert response;
         private XmlRpcClient xmlrpc;
         private Vector params, xmlArray;
         public MyMidlet() {
              // Initialize the User Interface
              menuItems = new String[] { "Timestamp", "Randomizer", "AddressBook" };
              list = new List("Select a service", List.IMPLICIT, menuItems, null);
              exitCommand = new Command("Exit", Command.EXIT, 1);
              response = new Alert("Service Return", null, null, AlertType.INFO);
              response.setTimeout(Alert.FOREVER);
              // Add commands
              list.addCommand(exitCommand);
              list.setCommandListener(this);
              // obtain a reference to the device's UI
              display = Display.getDisplay(this);
         }// end MyMidlet()
         public void startApp() {
              display.setCurrent(list);
         }// end startApp()
         public void pauseApp() {
         }// end pauseApp()
         public void destroyApp(boolean bool) {
              // clean up
              list = null;
              exitCommand = null;
              display = null;
         }// end destroyApp
         public void commandAction(Command com, Displayable dis) {
              if (dis == list && com == List.SELECT_COMMAND) {
                   switch (list.getSelectedIndex()) {
                   case 0:
                        try {
                             xmlrpc = new XmlRpcClient(
                                       "<a href=http:// www.wsjug.org/servlet/XmlRpcServlet EUDORA=AUTOURL> http:// www.wsjug.org/servlet/XmlRpcServlet/a>");
                             params = new Vector();
                             String serverTime = (String) xmlrpc.execute(
                                       "sysTime.getSystemTime", params);
                             response.setString(serverTime.toString());
                             display.setCurrent(response);
                        } catch (Exception ex) {
                             response.setString(ex.toString());
                             ex.printStackTrace(); // DEBUG
                             display.setCurrent(response);
                        }// end try/catch
                        break;
                   case 1:
                   case 2:
                        response.setString("Please download the full sample code");
                        display.setCurrent(response);
                        break;
                   }// end switch( list.getSelectedIndex() )
              } else if (com == exitCommand) {
                   destroyApp(true);
                   notifyDestroyed();
              }// end if( dis == list &&
              com = List.SELECT_COMMAND;
         }// end CommandAction( Command, Displayable )
    }// end MyMidlet
    I think the problem here is with the kxml.jar file which I have placed every where I find the lib folder. Could anyone please tell me where to exactly place the kxml.jar file?
    I am using Myeclipse IDE.
    Please help.
    Thanks in advance.
    Regards,
    Bharat Kumar

    Hi Vamsi.
    The exactly erro refers to a problems when you try upgrade from these version to 11.5.10.
    Can you read this note and apply solution? The note refers a patch, but the problem is the same.
    After Patch 4334965, adstrtal.sh & adstpall.sh is failing with errors [ID 360046.1]
    BR Rafael Ceolim

  • Weird Bouncy castle problem... works on cmd prompt, error in midlet

    Hi, i'm developing a RC4 code.... it works when i made the main method display the plaintext, ciphertext and decrypted text.
    But, putting it to a MIDlet, i get the error message:
    java.lang.NoClassDefFoundError: org/bouncycastle/crypto/CipherParameters
         at TestRC4.<init>(+36)
         at java.lang.Class.runCustomCode(+0)
         at com.sun.midp.midlet.MIDletState.createMIDlet(+34)
         at com.sun.midp.midlet.Scheduler.schedule(+52)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+80) Why? how do i fix it?

    I call OpenProcess(), even with minimal parameters like PROCESS_QUERY_INFORMATION
    Actually it's not minimal:
    Generic read access to a higher integrity process (PROCESS_VM_READ access to the virtual memory of a process, and
    PROCESS_QUERY_INFORMATION) is restricted to block the ability of lower-privilege processes from gaining read access to memory that may contain password data or other key material that is used for authentication.
    https://msdn.microsoft.com/en-us/library/bb625962.aspx

  • Read a txt file from MIDlet

    dear sir,
    I am working on a midlet which should read position information (privided by TOMTOM GPS) from a TXT file and send it to a server.
    In Toolkit everything works fine, but when I transfered the midlet on a ipaq pocket pc running windows and using IBM j9 jvm I got problems.
    I can not read any file which is not in the package of the MIDlet
    here is the code:
    //read position from textfile
    try {
    Class c = this.getClass();
    InputStream is = c.getResourceAsStream("iamhere.txt");
    StringBuffer str = new StringBuffer();
    byte b[] = new byte[1];
    while ( is.read(b) != -1 ) {
    str.append(new String(b));
    is.close();
    position = str.toString();
    catch (Exception e) {
    e.printStackTrace();
    position = new String("Sorry: I can not read position of your friend!");
    can it be that this operation is generally not allowed or that the path is not correct (i tryed also file:///java/iamhere.txt)
    thanks for any help
    dominik

    hi,
    this works fo me:
    download ibm websphere trail from IBM website.
    install websphere andwebsphere everyplace on the pocket pc
    in the websphere program there is a update tool
    launch it and download and install fileconn.dll pimdll.dll
    (I do not remember how it is called but something like jsr 75 or fileconnector or fc)
    � Copy E:\WSDD\wsdd5.0\ive-2.2\runtimes\wm2003\arm\midp20\bin\j9.exe to
    \Program Files\J9\MIDP20\bin\
    � Copy
    E:\WSDD\wsdd5.0\ive-2.2\runtimes\wm2003\arm\midp20\bin\fileconn.dll to
    \Program Files\J9\MIDP20\bin\
    � Copy E:\WSDD\wsdd5.0\ive-2.2\runtimes\wm2003\arm\midp20\bin\pimdll.dll
    to \Program Files\J9\MIDP20\bin\
    � Copy jars from
    E:\WSDD\wsdd5.0\ive-2.2\runtimes\wm2003\arm\midp20\lib\jclMidp20\ext\ to
    \Program Files\J9\MIDP20\lib\jclMidp20\ext\
    and in the JAD:
    MIDlet-Permissions:
    javax.microedition.io.file.read,javax.microedition.io.file.write
    hope this helps.
    Ciao

  • Error message after compiling -  java/lang/NoClassDefFoundError

    Hi
    My program compiles fine, no errors, but when the emulator is running and I click on the MIDlet I want to run I get the following error message, even tho
    I have that class defined in my library:
    Uncaught exception java/lang/NoClassDefFoundError: org/bouncycastle/crypto/InvalidCipherTextException.
    Does anyone know how I can get rid of this error?
    Thanks a million for your help

    Littlen12 wrote:
    I�ve tried adding all the bouncy castle libraries (even though I don�t need them all), then only the ones I�ve needed and >the cldc_class.zip and cldc_crypto.zip files. But I still get the following error -
    Uncaught exception java/lang/NoClassDefFoundError: org/bouncycastle/crypto/InvalidCipherTextExceptionThat means it still can not find the classes when compiling the project. Make sure your reference points to the right place. If you are using netbean, you will need to know how to add user libraries to the project.
    For user library like bouncy caste libraries,
    cldc_crypto.zip
    cldc_classes.zip
    you can try to add user library as following in netbean,
    1. Right-click the your project node in Projects window and select Properties
    2. Select Build / Libraries & Resources in properties tree
    3. Click Add Jar/Zip
    I am not sure if it is right way to add user libraries in netbean, but here you can read more about it.
    http://www.netbeans.org/kb/articles/mobile-class-library.html
    Hope it helps.
    Edited by: CostaChung on Dec 4, 2007 6:02 AM

  • Ipaq Speculation: Java vs MS C++

    Hi,
    I am starting a project for a Compaq Ipaq 3870 with PocketPC 2002, and am debating between developing using Java or MS C++. If at all possible, I would rather take the Java route, since I've developed in both, and am less than humored by how non-standard MS's version of C++ is.
    After doing some research, I've come to the conclusion that the Jeode VM is reasonable for running Java, unless I'm willing to swap out the WinCE OS. Also, as my application is likely to have an extensive UI, I would definitely like to have AWT (and Swing support if at all possible). Further, I've tried the Forte4j Mobile Edition to see how IDE support is in this realm.
    So, given my rather limited knowledge, here are some questions:
    - Since J2ME has supposedly encompassed the older PersonalJava, yet the Jeode VM was built to support the latter, will applications written to the J2ME specification (for CDC, I believe) run on Jeode? If not, is there an alternative VM for the Ipaq/ARM?
    - Is there an emulator/skin for the Ipaq available that may be added to the list of emulators for Forte? Or, how may one be created?
    - What other Ipaq emulator alternatives for Java development are present? - What API (J2ME / PersonalJava) should the Java code be written to?
    Thank you,
    SP

    Hi prsheila,
    My name is Lee Graham, I'm very much a newbie when it comes to Java programming,
    but I'm giving it a whirl. I found your messages on the Wireless Developer site regarding
    your attempts to code for the iPaq. I'm in a similar situation and I thought you might be
    able to help. I have some code for an application which I would like to port over to J2ME
    for the iPaq wireless device. I've downloaded Forte (or "ONE" as it's now called) but it
    seems to be forcing me to use MIDP and to create Midlets and Midlet Suites. But, from
    what I've read, Forte ME should allow me to compile and emulate for Personal Java, which,
    if I understand correctly, is just a subset of JDK and is not as limited as MIDP (for example,
    it can use AWT). Do you know, precisely, how I can create a new project in Forte (or
    other IDE, I'm open to suggestions) and load my old code so that I can compile and emulate
    for the iPaq?
    Also, I understand that Swing will have to be tossed when I port over to the new
    environment. Are there any other major concerns like that I'll need to be warry of?
    Thanks a lot for any help you might be able to provide,
    -Lee

  • ERROR: java/lang/NoClassDefFoundError. HELP!!!

    Hi all, can any one tell me what's wrong with my program that runs fine in JavaONEStudio5, but i find following error message when i run it in WTK21:
    Project "readWriteRights" loaded
    Project settings saved
    Building "readWriteRights"
    Build complete
    Running with storage root DefaultColorPhone
    Uncaught exception java/lang/NoClassDefFoundError: ReadWriteRights.
    Here is my simple program:
    * readWriteRights.java
    * A simple application program to read a text file
    * and store it's content into a Record Store.
    * the data is read from the Record Store for verification
    * Created on 2004/4/8 2:29am
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import javax.microedition.rms.*;
    import java.io.*;
    public class readWriteRights extends MIDlet {
    public readWriteRights() { } // constructor
    public void startApp() throws MIDletStateChangeException {
         String fileName = "origin.drm";
         String field[] = new String [] {"","","","","","","",""};  // Total 8 constraints in the file
         int i = 0;
         // retrieve the contents of a resource file
         System.out.println("Retrieving the resource file - readme.txt");
         System.out.println("--------------------------------------------");
         InputStream is = this.getClass().getResourceAsStream(fileName);
         try {
              if ( is != null ) {
                   int ch = is.read();
                   while ( ch != -1) {
                   // print out the contents of the readme file
                   System.out.print((char) ch);
                        // temp = (temp-10)*2;   // decoding
                        if (ch == 10) { i++; } //skip it if the character is \n
                        else
                             field[i] += (char)ch;
                        if(i >= field.length)
                        { ch = -1;}
                        else{ ch = is.read();}
                   is.close();
              } catch (IOException e) {
                   System.out.println(e);
         // Write to a record store
         String rs_Name = "db1";
         RecordStore rs = null;
         try {
                     if ( exist(rs_Name) == true) {
              RecordStore.deleteRecordStore(rs_Name);
                 }  // check and delete existing Record Store
              rs = RecordStore.openRecordStore(rs_Name,true);
              System.out.println("Record Store "+rs_Name+" is opened.");
         catch(Exception e){
              System.out.println("Error: "+e.getMessage());
         finally{
              //* write records
              for (int j = 0; j < field.length; j++)
                   byte[] rec = field[j].getBytes();
                   //close the record store
                   try {
                        rs.addRecord(rec,0,rec.length);
                        System.out.println((j+1) +" record is added to db1");
                        System.out.println("Record: "+field[j]);
                   catch (Exception e){System.out.println("Error: "+e.getMessage());}
              System.out.println("Write reord completed.");
              //* read records
              try {
                   int len =50;
                            byte[] recData = new byte[len];
                            System.out.println("The data read from Record Store.");
                   for (int k=1; k <= rs.getNumRecords(); k++)
                        len = rs.getRecord(k, recData, 0);
                        System.out.println("Record #"+k+": "+new String(recData, 0, len));
                        System.out.println("---------------------------------------------------");
              catch (Exception e){System.out.println("Error2: "+e.getMessage());     }
              // * close record Store
              try {
                   rs.closeRecordStore();
                   System.out.println("record store db1 is closed");
              catch (Exception e){System.out.println("Error: "+e.getMessage());}
    destroyApp(true);
    notifyDestroyed();
    * The method to check if the Record Store existed or not
         public boolean exist(String recordStoreName) {
              boolean existF=true;
              RecordStore rs=null;
              if(recordStoreName.length()>32) return false;
                   try {
                        rs=RecordStore.openRecordStore(recordStoreName,false);
                   catch(RecordStoreNotFoundException e) {existF=false;}
                   catch(Exception e){}
                   finally{
                             try{
                                  rs.closeRecordStore();
                             }catch(Exception e){}
              return existF;
    } // end of check Record Store existance method          
    * Pause the MIDlet
    public void pauseApp() { }
    * Called by the framework before the application is unloaded
    public void destroyApp(boolean unconditional) { }
    }

    I doubt that the error is caused by " java.io.* " which is not included in MIDP so that my program cannot run in WTK21.. is that true?
    if yes, what can I do with it because I have to run it in WTK21 for demonstration. thx!!!!!

  • Java.lang.NoClassDefFoundError: Login: com/sun/gi/comm/users/client/JMEClie

    I am getting this error when i am ruunning my j2me program in eclipse 3.2 >>>>
    The default color phone emulator og the j2me disappear after launching...
    Can anybody please tell whats the problem?
    <Error code>
    java.lang.NoClassDefFoundError: Login: com/sun/gi/comm/users/client/JMEClientListenerInterface
    at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
    at com.sun.midp.midlet.Scheduler.schedule(+52)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+116

    When i executing J2ME program m getting the error
    java.lang.NoClassDefFoundError: com/sun/midp/midlet/MIDletState
    Exception in thread "main"
    Can anyone plz help in this

  • Hi.. midlet in Japplet

    hi,
    i would appreciate if someone could give me some suggestion..
    Exception in thread "AWT-EventQueue-7" java.lang.NoClassDefFoundError: javax/microedition/midlet/MIDlet
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
    1. first i put the javax midlet class file and all my files inside a jar file
    2. i sign the jar
    3. load and the error appear.
    i have try to put the jar file in lib jre and the same folder as the html call in the applet.html but the error appear.
    Thank you,

    it got a problem with multi class loader..
    seem that code below cannot get the class file javax.microedition.midlet.Midlet
    result = super.findSystemClass(className);

  • Geting info about a NoClassDefFoundError

    My Question:
    Is it possible to get information from a NoClassDefFoundError about which class couldn't be found?
    My exact problem:
    I'm writing a program for my iPAQ (Java 1.1) which loads some classes which are not located in the classpath. This works fine, until a class is loaded which needs another class which is also not in the classpath. In this case a NoClassDefFoundError is thrown.
    I'd like to catch this error and try loading the file from the directory in wich the first class was found. If this fails I'd like to display a dialog to the user which asks him where the class is located.
    To do this I need the name of the class which is not found.

    I've written my own classLoader that has a method which takes the path of the class to load.
    Then it reads that file into a byte[] and calls defineClass.
    This is the point where I'm catching the NoClassDefFoundError.
    When I call the getMessage method of the catched error it's null :-(

  • Problem during runing of midlet

    I'm able to compile the source code of my midlet but when i run them i have got this problem that i just exits abnormally and give me a msg
    Alert:Bad Class Access Flags
    How am i going to solve this ???

    well thanks,i forgot to add in a jar file(aelfred.jar)--external lib
    thats what's cuasing all the problem
    do u have any idea y i get this message:
    Building "AdsApplication"
    Error preverifying class com.microstar.xml.SAXDriver
    java/lang/NoClassDefFoundError: org/xml/sax/Locator
    com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
    even with an empty midlet
    i have already placed the two jar files(sax.jar & aelfred.jar) in my lib dir as an external class reference
    what should i do
    the classes are all in the
    the Locator.lass file is in c:/apps/m/lib/org/xml/sax/Locator
    while the SAXDriver.clas file is in c:/apps/m/lib/com/microstar/xml
    what should i do ???
    can you help ???

  • Port a J2ME app to IPAQ

    I have a J2ME application running on Palm, but right now i need to get it running on IPAQ H3000, ipaq is using winCE as its os, as far as i know there are two approaches to run java app on ipaq. first is Jeode but this jvm is for personJAVA second is get savaje this will replace winCE compeletely. is there any other way arround.
    is IBM's jvm for midp a possible choice??
    any advice is appreciated!!

    Hello,
    I try to follow the instructions to create and run a MIDP MIDlet at the address : http://www.embedded.oti.com/support/tb/?tb=16. But at the time of making "run" in the SmartLinker, nothing takes place and so I do not obtain the file jxe.
    Have you already tried?
    Can you help me?
    Thank you very much.

  • NoClassDefFoundError in JSR-179 code

    Hello. I am testing some GPS capabilities on my 7100i Sprint/Nextel. Everytime I try to run my midlet on the device, I get the "NoClassDefFoundError". The 7100i is listed as implementing the JSR-179 spec, so I am at a loss.
    I have tried getting the result of the System.getProperty("microedition.location.version") and it returns "1.0" as it should according to the spec. I have explicitly enabled permissions in the midlet for the .Location class.
    The code I am using it coming directly from an example posted on BlackBerry's site ... http://www.blackberry.com/developers/journal/jan_2006/blackberry_gps.shtml?CPID=OTC-devfeb17
    Can anyone provide help on getting past this error?

    I kept poking around on this and found that the .jar file did not include the .class files from the JSR-179 implementation. I manually added these to the preverification and recompiled and re ran on the device. Now I am getting "...attempts to access a secure API". It seems from that now I have to use the Blackberry/RIM digital signing process to gain access to this. Any additional comments on these topics are very welcome!

  • Bluetooth MIDlet  on PDA

    Hi!
    I'm trying to make a Bluetooth MIDlet (2.0) work on my PDA (hp ipaq h5550 running Windows pocket PC 2003). I started with innstalling IBMs J9 virtual machine, added jsr 082 (manualy), and then tried to run my application. However, this doesn't work, it fails during initialization of bluetooth. Can anyone please tell me what the problem might be?

    what you need is a bluetooth stack installed on your PDA/
    a really good one is Avetana and Cream...try them out,
    good luck! :)

Maybe you are looking for

  • Payment System Unavailable

    I'm also having the "Payment System Unavailable" problem. It's a U.S. license and a U.S. credit card. It then tells me "We're sorry, but we're having trouble processing your order. Please come back and try again later or call us at +1 800-585-0774. I

  • Does anyone know how to set the starting time for an audio book?

    I am trying to restart a burn in iTunes that failed for an audiobook. I need to set the start time so it will not have to reburn the disks that were already completed. I cannot find out how to do that in version 11 if the book consists of more than o

  • What shud i do when i cant open my itunes anymore due to its invalid certificate

    Pls help..

  • Regarding Fields Mapping

    hi all How to fecth the Goods receipt no(material Document no) and Invoice Receipt no for a particular Purchase order. i want from which tables i will get those information along with relation between tables...

  • Regarding New database installation

    Hi, I have one database with different user for billing,Reports etc. But we have problem of performance when we display reports. I think we have to create new database for Reports schema in that only reports are there. But still we have to fetch data