BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-07-2007, 01:54 PM   #1 (permalink)
Thumbs Must Hurt
 
cyberpine's Avatar
 
Join Date: May 2006
Model: 8700g
Carrier: T-mobile
Posts: 65
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default 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  
Old 10-12-2007, 11:12 AM   #2 (permalink)
New Member
 
Join Date: Oct 2007
Model: 8100
PIN: N/A
Carrier: Vodafone Spain
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Hi

I have the same problem. Do you resolved it ?
Offline  
Old 10-12-2007, 03:28 PM   #3 (permalink)
CrackBerry Addict
 
Join Date: May 2005
Location: Golden, CO US
Model: 9700
Carrier: ATT
Posts: 684
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think MIDP 2.0 is the latest supported.
Offline  
Old 11-07-2007, 05:28 AM   #4 (permalink)
New Member
 
Join Date: Nov 2007
Model: 7290
PIN: N/A
Carrier: airtel
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default change midp version

change the MIDP version to 2.0 and it works very fine. many devices are not upgraded yet to support MIDP2.1
Offline  
Old 11-07-2007, 05:38 AM   #5 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

check the obfuscation settings - could be an issue, try with none and see if it works.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.