05-07-2007, 01:54 PM
|
#1 (permalink)
|
| Thumbs Must Hurt
Join Date: May 2006 Model: 8700g Carrier: T-mobile
Posts: 65
Post Thanks: 0 Thanked 0 Times in 0 Posts
| j2me - 908 incompatible configuration midp-2.1 Please Login to Remove! I created a very simple j2me hello world application that I had installed another midlet java compatible phone (a motorola a630) about a year ago using a prior verion of the the toolkit. It worked with no issues.
I'm now using the Sun Java Wireless Toolkit 2.5.1 for CLDC to compile it creating the jad, jar and MANIFEST.mf files.
I call the jar file over the web, and get the install button my on 8700g.
However, when I attempt to install it on my BB 8700g I get:
908 incompatible configuration or profile application has malformed attribute microedition profile midp-2.1
my code:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class jcphw extends MIDlet implements CommandListener {
private Command exitCommand;
private TextBox tbox;
public jcphw() {
exitCommand = new Command("Exit", Command.EXIT, 1);
tbox = new TextBox("Hello world MIDlet", "Hello World!", 25, 0);
tbox.addCommand(exitCommand);
tbox.setCommandListener(this);
}
protected void startApp() {
Display.getDisplay(this).setCurrent(tbox);
}
protected void pauseApp() {}
protected void destroyApp(boolean bool) {}
public void commandAction(Command cmd, Displayable disp) {
if (cmd == exitCommand) {
destroyApp(false);
notifyDestroyed();
}
}
}
my jad file:
MIDlet-1: jcphw, jcphw.png, jcphw
MIDlet-Jar-Size: 1161
MIDlet-Jar-URL: jcphw.jar
MIDlet-Name: jcphw
MIDlet-Vendor: xxx
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.1
my MANIFEST.MF FILE:
IDlet-1: jcphw, jcphw.png, jcphw
MIDlet-Name: jcphw
MIDlet-Vendor: xxx
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.1
Thanks for any help or information. |
| Offline
| |