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();
}
}
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