File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Problem Running MIDlets on BlackBerry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Problem Running MIDlets on BlackBerry" Watch "Problem Running MIDlets on BlackBerry" New topic
Author

Problem Running MIDlets on BlackBerry

Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Hi, I use BlackBerry Java Development Environment 4.1 and BlackBerry Emulator 7290 for MIDlets.The MIDlets are not working with these.Even a simple MIdlet like 'Hello world' is not working. I extend MIDlet class for these. Once built and run, the MIDlet should appear as an application in the list in the emulator, but my MIDlet is not at all appearing, though build is successful.Where as a UIApplication is working fine in the same tool. What can be the Problem?


RAGHU<br /> <br />"When the going gets tough, the tough get going"
Rashid Mayes
Ranch Hand

Joined: Jan 11, 2006
Posts: 160
I use the 4.2 version of the JDE for development and the 8100 emulator. I have not had any problems running midlets. My project type is set to midlet and my application always appears in the menu after select build/run (ALT+F5).

Do you have the same problem when using a different emulator? If you transfer the application (cod) to a real device does it show up? I could give you my exact steps if you want to try running your project in 4.2.


Rashid Mayes
http://www.hostj2me.com/ - http://www.worlddeveloper.org/
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Hi, I am not sure if my BlackBerry IDE is set to MIDlet mode of project.I am not able to find this parameter in the prefernces.I use 4.1. Can you tell me where to check for that in the IDE?

thanks
Rashid Mayes
Ranch Hand

Joined: Jan 11, 2006
Posts: 160
I access the projects settings through the preferences context menu of the project (name node).

Please take a look a the video below.

http://hostj2me.cliqcafe.com/files/2059/bbsetup.wmv

I walk through my project and settings. I am not an expert on Blackberry development. My project involve porting a MIDLet that I created for the E61 using eclipse to the Blackberry JDE targeting the 8100.

You can see more videos in which I use the JDE on mobox.cliqcafe.com or hostj2me.cliqcafe.com.

Excusing the lack of a pop filter and half-sleep narrations, they may still not be helpful because the videos start with the emulator already launched.

I do have version 4.1 installed. If I am able to find the time today I will check to see if I can get the 4.2 project running in 4.1.

Have you had any luck getting help in the RIM (Blackberry) developer forums?
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Please give me details as to where can I visit the RIM forum.I am still hung up with the same problem.Is the problem because I am not importing any rim packages but only javax packages?( I am sorry if I am eating your head too much).



Thanks
Rashid Mayes
Ranch Hand

Joined: Jan 11, 2006
Posts: 160
There are a few sites dedicated to RIM development. You should start here http://www.blackberry.com/developers/community/index.shtml.
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Not much help from RIM.I just want to know how do I run a MIDlet in a blackberry JDE.I am giving a sample code here that I am trying to run in the JDE.Please correct mistakes if any.


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

public class HelloWorld extends MIDlet implements CommandListener{
private Display display;
private TextBox textbox;
private Command exit;

public void startApp(){
display=Display.getDisplay(this);
exit=new Command("Exit", Command.SCREEN,1);
textbox=new TextBox("Hello World", "MY first MIDlet", 40, 40);
textbox.addCommand(exit);
textbox.setCommandListener(this);
display.setCurrent(textbox);
}
public void pauseApp(){
}
public void destroyApp(boolean unconditional){
}
public void commandAction(Command choice, Displayable displayable){

if(choice==exit){
destroyApp(false);
notifyDestroyed();
}
}
}


Thanks for bearing with me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem Running MIDlets on BlackBerry
 
Similar Threads
dev for specific phones/services
problem integrating midlets
How do i run Midlet on Series40 (6230 emulator)
I have 3 midlets but code to be displayed should be in first midlet .
Midlet to call a j2me java class