Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Latest news

Last at Tue, 6 Dec 2011 18:37:53
Topic: New BlackBerry sample app
See more news »

j2me package problem

1 reply [Last post]
mererajasekars
User offline. Last seen 1 year 48 weeks ago. Offline
Joined: 10/05/2009

i have this error after adding the extra lines into the basic map coding.
anybody know how to solve it.

after i remove the extra lines,i try to create J2ME package for the basic coding,but i can't create for this basic coding also.

error:
Errors occurred during the build.
Errors running builder 'Preverification' on project 'map'.
org.eclipse.jdt.internal.core.JavaModel.getTarget(Lorg/eclipse/core/resources/IContainer;Lorg/eclipse/core/runtime/IPath;Z)Ljava/lang/Object;

map coding:

package mappackage;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

import com.nutiteq.MapItem;
import com.nutiteq.maps.*;
import com.nutiteq.components.WgsPoint;
import com.nutiteq.controls.ControlKeys;

public class MapClass extends MIDlet implements CommandListener {
private Form mMainForm;
private MapItem mapItem;

public MapClass() {

mapItem = new MapItem("Map", "tutorial", this, 300, 150, new WgsPoint(78.442732, 10.392640), 12);
mMainForm = new Form("Campus map");
}
public void startApp() {
mMainForm.append(new StringItem(null, "Campus, map!\n"));

mMainForm.append(mapItem);

mMainForm.addCommand(new Command("Exit", Command.EXIT, 0));
mMainForm.setCommandListener(this);
Display.getDisplay(this).setCurrent(mMainForm);

mapItem.startMapping();

}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
public void commandAction(Command c, Displayable s) {
notifyDestroyed();
}
}

jaak
User offline. Last seen 1 day 11 hours ago. Offline
Joined: 06/19/2008

It could be problem with your build environment. What is your J2ME builder. I think I got something like that with EclipseME, and it was solved when I upgraded to the Mobile Tools for Java plugin (successor of EclipseME).

/JaakL