11-02-2010 06:03 AM
I have developed a test Midlet application.
I have followed the instruction for running a Midlet as a BB applicaion.
after a successful packaging of the Midlet, I've tried to run my converted Midlet as BB Simulator but nothing has happened.
the log in the.log file is:
!ENTRY org.eclipse.osgi 2 1 2010-11-02 11:41:26.622!MESSAGE NLS unused message: Undefined in: net.rim.ejde.A.I.messages
!ENTRY org.eclipse.osgi 2 1 2010-11-02 11:41:26.623!MESSAGE NLS unused message: AlternateEntryPointDetails_Locale_Resource_Group_L
!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2010-11-02 11:41:31.211!MESSAGE Project facet wst.web has not been defined. It is used in plugin org.eclipse.jst.common.project.facet.core.
The message in the .log-ejde is:
11:41:25,070 TRACE [K] ContextManager starting
11:41:25,075 DEBUG [G] Property change listener is enabled.
11:41:25,126 DEBUG [E] Starting Search for CPs
11:41:25,133 DEBUG [E] CP named BlackBerry Java SDK version 5.0.0 was found at C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0
11:41:25,163 DEBUG [C] VM: *ADDED* [pulse_com.sun.java.jdk.win32.x86_1.6.0.013$Sun JDK 1.6.0_13]
11:41:25,163 DEBUG [C] VM: *ADDED* [BlackBerry JRE 5.0.0$BlackBerry JRE 5.0.0]
11:41:25,188 INFO [J] # of BB VMs Found: 1
11:41:25,188 DEBUG [J] Bundle [net.rim.ejde] is changing state to Started.
11:41:26,582 TRACE [K] loading C:\Projects\BbTestApp\BlackBerry_App_Descriptor.xm
11:41:26,610 TRACE [K] finished loading C:\Projects\BbTestApp\BlackBerry_App_Descriptor.xm
11:45:10,196 DEBUG [K] Packaging BbTestApp (2)
11:45:10,246 TRACE [A] Project BbTestApp is marked as not need RAPC.
the blackberry_app_descriptor.xml is:
<General Title="TestApp" Version="1.0.0" Vendor="BlackBerry Developer" Description="Test Application"/>
<Application Type="MIDlet" MainMIDletName="com.em_projects.testApp.Main" MainArgs="" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="false"/>
<Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId="">
<Compile OutputCompilerMessages="true" ConvertImages="false" CreateWarningForNoExportedRoutine="true" CompressResources="false" AliasList="">
<Packaging OutputFileName="BbTestApp" OutputFolder="deliverables" PreBuildStep="" PostBuildStep="" CleanStep="" GenerateALXFile="true">
Whas went wrong????
11-03-2010 01:07 PM
Are you building from Java source files or are you trying to convert a JAR file to a COD file?
Can you elaborate on where the process stopped? Does it fail to compile? Does it fail to launch the simulator? Does it fail to appear in the simulator? Or does it not launch when you click on the icon in the simulator?
11-07-2010 04:29 AM
I'm trying to run my java code. After building the "project" by the Project -> Build, I've tried to create Blackberry package by right click on the project name BlackBerry -> Package Projects. That went successfully. But, when i have tried to run it by right click on the project name ->Run as -> Blackberry Simulator, it failed and I get the above messages.
11-08-2010 09:57 AM
What errors do you see in the Console window? Are you building from source .java files or from a .JAR file?
11-10-2010 12:05 AM
When I try to run my midlet, right click on the project name Run As -> BlackBerry Simulator i get the following message in the consule:
I realy don't know what can goes wrong with that :-(
My MIDlet contains nothing but Canvas creation that drawing a rectange and intercept the keyPress event.
11-10-2010 10:12 AM - edited 11-10-2010 10:12 AM
The error indicates that one of your library files has defined java.lang.IllegalStateException. This is already defined in the BlackBerry API set. You should remove any libraries that duplicate classes that already exist in the BlackBerry API set.
You don't see your application in the simulator because it wasn't successfully built.