Namespaces
Variants
Actions

HERE Maps API for Java ME cannot be used on Nokia C2-03 (Known Issue)

Jump to: navigation, search

Contents

Overview

Nokia Maps API for Java ME cannot be used on Nokia C2-03 and the following error is thrown: "Runtime java/lang/RuntimeException Copyright not available".

Description

A java application that uses the Nokia Maps API for Java ME to display a simple Map of the Globe throws the exception as described in the overview when it is launched and crashes. The only available option then is to Quit the application.

How to reproduce

The code below attempts to display a Map centered around Rome, Italy

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import com.nokia.maps.map.MapCanvas;
import com.nokia.maps.common.GeoCoordinate;
import com.nokia.maps.map.MapDisplay;
 
public class MapDisplayMIDlet extends MIDlet {
 
MapCanvas mapCanvas = null;
MapDisplay mapdisplay;
GeoCoordinate geo; //the coordinates of the map's center
 
protected void startApp() throws MIDletStateChangeException {
 
Display display = Display.getDisplay(this);
 
mapCanvas = new MapCanvas(display);
mapdisplay = mapCanvas.getMapDisplay();
 
//Gets the coordinates for Rome, Italy
geo = new GeoCoordinate(41.90311, 12.49576, 0.0f);
//Sets the center of the map to the given coordinates
mapdisplay.setCenter(geo);
 
display.setCurrent(mapCanvas);
}
 
protected void destroyApp(boolean unconditional)
throws MIDletStateChangeException {
 
}
 
protected void pauseApp() {
 
}
}

The source code above can be downloaded from here: Media:MapDisplayMIDletSource.zip

The installation files for the source code above can be downloaded from here: Media:MapDisplayMIDletBinaries.zip

The following steps are needed in order to reproduce this error:

  1. a Nokia C2-03 should be used
  2. a proper data package connection should be active

Actual Result

The MIDlet crashes with the following Exception upon launch: "Runtime java/lang/RuntimeException Copyright not available"

Expected Result

The application should request permission to connect to the internet and eventually a Map centered around Rome, Italy should be displayed.

Affected Devices

This error affects Nokia C2-03.

Solution

No known solution is available

SignpostIcon HereMaps 99.png
SignpostIcon MapAndLocation 52.png
Article Metadata

Code Example
Tested with
Devices(s): Nokia C2-03

Compatibility
Platform(s): Series 40

Article
Keywords: Nokia Maps, Java ME, Java, C2-03, Exception, error, problem, issue
Created: skalogir (24 Feb 2012)
Last edited: hamishwillee (24 Apr 2013)
This page was last modified on 24 April 2013, at 09:56.
323 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved