Getting started on pure J2ME app

I did successfully and deployed a BB app using the full rim API, with the help of you guys.  Now, I need to write a simple version using J2ME, so that it is portable.  However, I have trouble getting an application running in the Simulator.  Here's what I did.

Using Eclipse 3.4.1 with BB plugin, which connects to BlackBerry JDE 4.5.

  1. Created a new project of blackberry (-> file-> New-> other-> BlackBerry -> BlackBerry project)
  2. A written source:
package com.foo.bar;import javax.microedition.midlet.*;import javax.microedition.lcdui.*;

public class MyMainScreen extends MIDlet {  protected void destroyApp(boolean arg0) throws MIDletStateChangeException {   } protected void pauseApp() {   } protected void startApp() throws MIDletStateChangeException {     System.out.println("Hello Word"); }}

3. have you: right click on project-> properties-> project of BlackBerry -> Application tab properties

and the Type of project selected 'MIDlet', name of the MIDlet main class 'MyMainScreen '.

4. build the project and run Debug.

My app appears on the simulated device, but when I select it, the battery shows that I enter the event dispatcher and I get "Eception exception: java.lang.IllegalArgumentException and don't see my println on the console.»  I may make a link to a pot of J2ME instead of the rim JDE component Package?  I have not installed anything explicitly for J2ME.  Sorry for my basic question.  Can you help me get off the ground?  Thanks - fd

did you put in the name of midlet with complete set or only MyMainScreen?

Tags: BlackBerry Developers

Similar Questions

  • I'm just getting started with adobe creative cloud. I hace low loaded Media Encoder CC 2015 as well as first Pro CC 2015, but when every time I select apps in the app it says "download error please aontact costomer support". I tried to slow down

    I'm just getting started with adobe creative cloud. I hace low loaded Media Encoder CC 2015 as well as first Pro CC 2015, but when every time I select apps in the app it says "download error please aontact costomer support". I tried to reinstall the creative cloud by using the link provided and I also tried manually. I have Windows 7 with a 64 bit system.

    Hello

    I think that you have found the "download error" in the Apps Panel.

    Please check the help below document:

    Download error in the applications tab of Creative Cloud Desktop Application

    You can also view the threads below:

    https://forums.Adobe.com/thread/1832357

    Persistent Cloud error - error download - creative

    Re: Creative Cloud "Download error" message

    Kind regards

    Sheena

  • How to call the REST Webservices via native J2ME app.

    Hi, can someone help me how to call REST Webservices via native J2ME app. I don't want to use the HTTP request. Is there a possible way to call via AJAX, if so how? I use only the RIM and the J2ME API. Thank you, joy

    JSON is just the format fo the data returned.  So all you do is make a standard HTTP call, get the data and analyze using JSON.  OS 6.0 includes JSON, but OS 5.0 doesn't work, then you will need to get a JSON library if you want to use in the 5.0 OS.

    You might find them useful:

    http://supportforums.BlackBerry.com/T5/Java-development/JSON-library/m-p/573687

    http://supportforums.BlackBerry.com/T5/Java-development/sample-code-implementing-JSON-in-your-applic...

  • Try to download "Getting Started with Windows 8"

    Try to download "Getting Started with Windows 8" on the new computer. He has been loading for more than an hour with no results? How can I stop the page to load?

    Hi Carol,.

    I understand you are trying to install app "Getting Started with Windows 8" HP store and your computer and it failed to load and freezes the computer. If I'm wrong, please let me know.

    We will try to kill the application from the taskbar. Refer to this step.

    a. right click on the taskbar, click Start Task Manager, click the Applications tab, right-click on the application and click on end task.

    b. now, go to the Windows store and try to install the application.

    You can also restart the computer and check.

    Hope this helps and let us know if you need help.

  • How to get started using offline file "acrobat_reference.pdf" from in Acrobat Pro DC, preferably in the Help menu?

    How to get started using offline file "acrobat_reference.pdf" from in Acrobat Pro DC, preferably in the Help menu?

    You create a JavaScript script like this.  It has two platforms, but available in JavaScript, but I have commented out the windows because it's from my Mac.  Also note that I've hidden the menu default Acrobat help item in this JavaScript.

    /************************* Hide Menu ********************************/

    Hide the default Help menu

    app.hideMenuItem ("HelpAcrobat");

    / * Menus execution * /.

    app.addMenuItem ({cName: 'Adobe Acrobat help PDF', cParent: 'Help', cExec: "fTDocs1()", NPO: 0});

    /***************************** Functions ************************************/

    Note: The ' / C/Program Files/Adobe / ' convention was used to conform to the

    SDK Adobe format but the installer does not you may need to

    Change the path to your system.

    Mac OS X

    function fTDocs1()

    {app.openDoc ("/ Applications/Adobe Acrobat XI Pro/Help/acrobat_reference.pdf") ;}} ;

    This section is commented

    64-bit Windows

    function fTDocs1()

    {app.openDoc("/C/Program Files (x 86) / Adobe/Acrobat DC/Acrobat/Javascripts/acrobat_reference.pdf') ;};}

  • Could not open the page "Get Started"

    After I instaled the oracle 11g XE on windows XP I open "Get Started". I get this: "Firefox cannot connect to this server 127.0.0.1:8080."
    I write about several sql: "' conn / as sysdba" and I get 'connected to an idle instance'. "
    Then to 'cancel the stop' = > 'instance shut down. "
    Then for "startup" = >
    ORA-1078, ORA - 01565:eror in the identification of the file "C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora".
    ORA-27041: could not open the file
    04002 - OSD: could not open the file

    Published by: 937555 on 02.06.2013 20:47

    Hello

    seems that something went wrong during installation when your spfile does not exist or is not readable or corrupted somehow.
    You should check your Setup for error logs, starting with cloneDBCreation.log in C:\oraclexe\app\oracle\product\11.2.0\server\config\log on your machine. This is where the creation of the spfile might be connected.

    -Udo

  • 'Get Started' URL is rejected and XE database does not seem to start

    Hello

    Any new on Oracle, so I apologize for my ignorance. Spent 3 days trying to launch the get started URL that Oracle puts on my desktop or connect with fast SQL. I spent all day today trolling these forums and I am unable to solve this problem.

    OS: Windows 7 Enterprise SP1
    System: i7 to 2.7 GHz, 8 GB RAM, 64-bit
    DB: OracleXE 11g

    Chrome error message when I try to connect to http://127.0.0.1:8080/apex/f? p = 4950: error 102 (net::ERR_CONNECTION_REFUSED): the server has refused the connection.

    --------------

    Here is the result of my TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 16-NOV-2
    012 14:42:28

    Use settings files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora

    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = CONNECTL)
    AP28. AWI. State.FL.US) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVIC
    E_NAME = XE)))
    OK (0 msec)

    ------------

    Here is the result of my LSNRCTL > status
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Prod
    ction
    Start date November 16, 2012 13:41:57
    Uptime 0 days 1 hours 2 min. 50 sec
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Default Service XE
    Listener parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\a
    dmin\listener.ora
    Listener log file C:\oraclexe\app\oracle\diag\tnslsnr\CONNECTLAP28\liste
    ner\alert\log. XML
    Summary of endpoints listening...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp (PORT = 1)(HOST=CONNECTLAP28.awi.state.fl.us)
    521)))
    Summary of services...
    Service 'CLRExtProc' has 1 instance (s).
    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...
    Service 'PLSExtProc' has 1 instance (s).
    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
    The command completed successfully

    -------------------------

    Here is the result of my sqlplus / as sysdba

    SQL * more: Production of the 11.2.0.2.0 version Fri Nov 16 14:47:53 2012

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    ERROR:
    ORA-28056: audit event log entry records Windows failed
    OSD-00512: Message not found 512; product = RDBMS. installation = SOSD
    S/O-error: (OS 1722) the RPC server is unavailable.
    ORA-28056: audit event log entry records Windows failed
    OSD-00512: Message not found 512; product = RDBMS. installation = SOSD
    S/O-error: (OS 1722) the RPC server is unavailable.

    Enter the user name: System
    Enter the password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Process ID: 0
    Session IDs: serial number 0: 0

    I've uninstalled and reinstalled the 64-bit version, 32-bit version, repaired, stopped and started services, changed KEY_XE.reg and the URL properties began to get. No luck so far. Please let me know what I can do.

    Thanks in advance.

    Uninstall then install again. Probably the problem with the log of events did not allow for installation complete in the first place.

  • Getting started with the extension of the iAd

    Hello

    I recently bought SAI extension for ios package of slag and can't its implementation.

    I have followed the Getting Started document, but I am not having any joy. I have attached a few screenshots to show how it is implemented and problems.

    (1) library of API included

    help1.gif

    (2) code in the first frame of the test app file

    help2.gif

    (3) errors received when publishing

    help3.gif

    (4) the errors received when private is underwritten

    help4.gif

    (5) when I disable the strict mode and publish it, I just get a blank white screen when viewing the app on my iPhone.

    Help, please!

    Thank you!

    Your problem is there in error. Looks like you are coding on the timeline instead of the class. That's fine, but that means getting rid of things linked class as a private function and extend class stuff. It's what your first mistake. When you do this, you receive the second error, here I can see in your code you have set up listeners for these 2 functions, but you do not have real onBannerAdLoaded and onBannerAdFailed function. Find these two in the docs or below, add them to your code.

    function onBannerAdLoaded(e:IAdEvent):void

    {

    trace ("banner loaded.");

    }

    private void onBannerAdFailed(e:IAdErrorEvent):void

    {

    trace ("banner ad failed");

    }

    The last error is an error on your part. In line 18, you have an ad in lowercase as SAI , it should be SAI, don't forget to flash is very sensitive. So change for this.

    IAd.iAd.createBannerAd (IAdBannerAlignment.TOP, IAdContentSize.PORTRAIT_AND_LANDSCAPE);

  • Can't access oracle home page / 'Get Started' with browser

    Hello. I take an Oracle of the class and do not know much about this help would be appreciated. I will try to provide as much detail.

    I use Windows XP and I installed 11 g Express Edition. From there, I tried the "Get Started" link, but I get an error page in my browser/s. I tried to get the url of the homepage on google (http://127.0.0.1:8080/apex/f? p = 4950) to see if others had problems and multiple threads of this forum appeared. I tried some some suggestions and nothing worked. Netstat displays nothing listening on port 8080. I tried to disable the windows firewall. I tried to turn off and restart the process TNSLSNR. It is what comes out on my listener.ora.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (= Extproc PROGRAM)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP) (HOST = 127.0.0.1)(PORT = 1521))
    )
    )

    DEFAULT_SERVICE_LISTENER = (XE)




    What should I try next?

    So I guess that this db never ran before?

    May issue of event log screwed up installation, earlier.

    If possible, try installing and reinstalling the beta version of XE.

  • HOW can I remove my Bookmarks Toolbar Firefox's "Getting Started" link? It wastes space and seems invulnerable to the attempted abductions.

    From the outset, I am on a MacBook Air, running Yosemite & the most recent Firefox Help. If your only interest in my question is for bash Macs, then (yawn) I'm not interested. If your interest is to help sincerely, then you have my interest as well:

    I'm stuck with a "Getting Started" Firefox link as the first 'signet' (left) on my bookmarks bar, I really want to delete: I was in the Apple computers (from the Apple] [e) & online since the mid-80s, so I'm hardly a naif in the digital world or Firefox newbie , so having a "Getting Started" link to life is ridiculous, AND I really need the space to accommodate MY choice! Then...

    I tried all ways recommended to delete unwanted bookmarks - Firefox, BUT when I pull down the "Show all bookmarks" command of bookmarks in the Menu bar, there is NO such thing as the "Getting Started" link, so I can't delete it there. I've even linked by clicking and dragging it out of the toolbar, but it does not (nor made more by dragging to the trash. Then, someone has idea of this insurgent link?

    You can try this?

    1. Open the Bookmarks Manager. In what is the Apple menu icon or the menu bar, click bookmarks > show all bookmarks.
    2. In the search bar search Favorites, type getting started.
    3. Delete the bookmark that opens.
  • remove a web site that appears next to "getting started" on the menu bar

    A Web site link unwanted icon appears on the bar next to "most visited", "getting started,"latest news"
    and it also appears on my gmail page. I don't know if it's an embed (?) or that it could be called, but it seems a website has invaded my search engine without my permission and I want to remove it and prevent it from happening again. Thank you.

    Hello mocomodoc, CoryMH

    control and click on is the right one for mac and then delete the bookmark.

    Thank you

  • Can't watch videos from getting started on 16.0.1 install page with Mac Intel 10.6.8 - no mp4 plugin update?

    Page "Getting Started" for Firefox 16.0.1 has a video window that plays audio only. Test of Firefox for the plugins page shows RealPlayer, Flash, Flip4Mac and Java are up-to-date. What other video plugins are required. I am currently using Firefox 10.0.2 and I am not inclined to update unless I have good reason to do so.

    If that doesn't work in Firefox Safe mode then disable all extensions (Tools > Modules > Extensions) and then try to find out who is causing by allowing an extension at a time until the problem reappears.

    Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    See also:

    Try disabling hardware acceleration in Firefox.

    • Firefox > Preferences > advanced > General > Browsing: "use hardware acceleration when available.
  • How do I get my Apple TV purchased apps to appear on the main menuHow to get my Apple TV purchased apps to appear on the main menu

    How to get my Apple TV purchased apps to appear on the main menu? I got all my apps on the main menu. I had to reset and reinstall Apple TV to get Airplay for work. It worked, but now my apps are only visible when I go to the window "purchased apps.  I would do again all back on the main menu. There are 19 of them. How can I move them into the main menu? That's where they were all before resetting. Apple TV Gen.4. I asked the President, but she did not.

    Apple TV does not display the cloud purchases would be in the same way, an iPad or Mac. You must re-download your applications so that they will appear on your home screen. Good luck.

  • Firefox 8.01 - automatically load the "Getting started with Mozilla... page.

    Firefox 8.01 - whenever I starts, it loads automatically the "Getting started with Mozilla...» "the my home page Tab. How can't we open the tab "Getting started...". » ?

    Hi ricklord303,

    You should take a look at the Knowledge Base How to set the home pagearticle.

    There are the steps in this article to reset your preferences on the default home page. I would try everything first to clear all strangeness. If it works, you can try to set your homepage again to your personal preferences.

    If this does not work you should look at this article on this specific issue and Preferences not savedarticle.

    Hope this helps!

  • The tab "Getting started with Mozilla Firefox" (as well as my default homepage on another tab) charge whenever I start Firefox. How can I stop this tab open at the start of the program?

    The tab "Getting started with Mozilla Firefox" (as well as my default homepage on another tab) charge whenever I start Firefox. How can I stop this tab open at the start of the program?

    If the above did not help, then also see the following articles for more suggestions:

Maybe you are looking for

  • Question about exporting data from Virtualbench.

    Hello I am new to the forums and VirtualBench and hoped that someone might be able to help. When I export data from the VirtualBench, I get 4 columns of data for the 2 channels. They are "1 Min", "1Max", "2 Min", "2Max. Example: Timestamps (ns) 1 min

  • status of step

    Is there a way to find the total number of steps failed during a given run. I see that the State step information are available but it is for the various steps. http://zone.NI.com/reference/en-XX/help/370052H-01/tsapiref/reftopics/stepproperties/ I'm

  • Do I have to add Wi - Fi to this hp p6510t?

    Do I have to add Wi - Fi to this hp p6510t?

  • in Cisco licenses a single model controller WLAN HA

    Hi all I am performing an estimate on the CCW. I have to configure a wireless controller with 12 licenses the AP based on the Cisco model. Please find below the BOM: C1-AIR-CT5508-K9 Range Cisco ONE - 5500 controller WLAN w / 0 AP PFR CON-SNT-CT5508K

  • Need help! How to replace keyboard on hp dv 7

    Someone has instructions, or a table guide on how to replace the keyboard on a computer laptop hp dv 7?