05-10-2010 10:44 PM
Friends.
I´m using Eclipse Galileo (3.5); JDK 1.6 and the last Blackberry Eclipse plugin (5.0). The installtion of the plugin was succesfull. I´m trying to run my first Hello world Aplication, everything is ok, there arent errors but when I want to run my aplication using the default simulator (Blackberry 8520 Simulator) I get the following error:
Your help is welcome. Thank you so much.
Greetings.
05-11-2010 01:55 PM
Does this appear when you start the BlackBerry smartphone simulator or when you start your actual application? If it is your application what line of code triggers this?
Note that you can run the clean.bat file located in the directory below to reset the simulator back to its default state.
.\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_
05-11-2010 11:36 PM
Thank you so much for Writing.
Yesterday I did use one of the default simlutors (9630) and the Hello world works with no problem because I´m following a great manual. But the strange thing is the application works with the 9630 simulator but with other simultars I´m getting the error I mentioned. This ocurrs with the JDE too ( my aplication works only with the 9630 simulator )
I ran the clean.bat ( because I found this information in other form posts) and the error is the same.
And the error appears when the application is tryng to open de Simulator.
my thoery and question.. ¿the new simulators with tactil screen like storm have some problem with my code bacause it is made to work wit standar blackberry with keyboard?
My hello world has 2 clases
package com.beginningblackberry.helloworld;
--------------------------------------------------
import net.rim.device.api.ui.UiApplication;
class HelloWorldApp extends UiApplication {
HelloWorldApp() {
HelloWorldMainScreen mainScreen = new HelloWorldMainScreen();
pushScreen(mainScreen);
}
public static void main(String[] args) {
HelloWorldApp app = new HelloWorldApp();
app.enterEventDispatcher();
}
}
--------------------------------------------------
package com.beginningblackberry.helloworld;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.component.LabelField;
/**
*
*/
class HelloWorldMainScreen extends MainScreen {
HelloWorldMainScreen() {
LabelField labelField = new LabelField("Hello World");
add(labelField);
}
}
05-12-2010 09:53 AM
Is the BlackBerry 8520 simulator you are testing with also running BlackBerry device software version 5.0? If not, the application you build in the version 5.0 BlackBerry Java SDK would not be compatible.
Appropriate version of the BlackBerry JDE