Hi all i have written this piece of code below. It works fine when in the java wireless tool kit emulator. However when i put the program on my nokia 6300 it comes up with the error "No Class Def Found Error java/lang/NoClassDef FoundError javax/microedition/location/Coordinates

Code:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.location.*;
 public class test extends MIDlet implements CommandListener{
    
    private Display display;
    private TextBox textbox;
    private Command quitCommand;
    private double lon;
    private double lat;
    private Location l;
    
    public void startApp()
    {
        try
        {
            // Set criteria for selecting a location provider:
            // accurate to 500 meters horizontally
            Criteria cr= new Criteria();
            cr.setHorizontalAccuracy(500);

            // Get an instance of the provider
            LocationProvider lp= LocationProvider.getInstance(cr);

            // Request the location, setting a one-minute timeout
            l = lp.getLocation(60);
            Coordinates c = l.getQualifiedCoordinates();

            if(c != null ) {
                // Use coordinate information
                lat = c.getLatitude();
                lon = c.getLongitude();
            }
        }
        catch(Exception e)
        {
		lon = 0.0;
		lat = 0.0;
		
        }
        display = Display.getDisplay(this);
        quitCommand = new Command ("Quit",Command.SCREEN,1);
        textbox =new TextBox ("Location Test", l,40,0);
        textbox .addCommand (quitCommand);
        textbox .setCommandListener(this);
        display .setCurrent(textbox);
        
    }
    
    public void pauseApp()
    {
        
    }
     
    public void destroyApp(boolean unconditional)
    {
        
    }
    
    public void commandAction (Command choice, Displayable displayable)
    {
        if (choice == quitCommand)
        {
            destroyApp(false);
            notifyDestroyed();
        }
    }
}
Can any one help at all