Java Connected Limited Device Configuration


CLDC Configuration


Classfile verification


Standard packages


Additional libraries


KVM


Profiles

  • MIDP 2.0 - the Mobile Information Device Profile
    This provides a minimal GUI for small-screen devices such as mobile phones
  • WMA
    The Wireless Messaging API allows you to send and receive SMS messages
  • MMAPI The Mobile Media API provides audio, video and other time-based multimedia support to resource-constrained devices
  • Currently (early 2003), only MIDP 1.0 is in mobile phones
  • There are a large and growing number of additional profiles, including Some require device driver support in the virtual machine, others are just software libraries
  • Future Profiles

    A number of other profiles are going through the Java Community Process (March 2003) to maybe become standards


    Checking configuration


    Checking profiles


    Ok example

    This compiles and runs okay:

    
    public class Hello {
    
            public static void main(String[] args) {
                System.out.println("Hello world");
            }
    }

    Non-okay examples

    This doesn't, because the class java.lang.Math is not known:

    
    public class Hello {
    
            public static void main(String[] args) {
                System.out.println("Hello world");
    
                double x = java.lang.Math.PI;
            }
    }
    
    

    This fails because the field System.in has been removed

    
    public class Hello {
    
            public static void main(String[] args) {
                System.out.println("Hello world");
    
                try {
                    System.in.read();
                } catch(java.io.IOException e) {
                }
            }
    }
    


    Compiling against KVM libraries


    Jan Newmarch <jan@newmarch.name>
    Last modified: Fri Dec 3 20:02:07 EST 2004
    Copyright © Jan Newmarch, Monash University, 2007
    Creative Commons License This work is licensed under a Creative Commons License
    The moral right of Jan Newmarch to be identified as the author of this page has been asserted.