"hello world" - my first MIDlet is not working .......

Hi There,
I have downloaded J2ME toolkit recently and wrote a "hello world" MIDlet which is as follows
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class HelloWorld extends MIDlet implements CommandListener
private Command cmd;
private Display display;
public HelloWorld()
display = Display.getDisplay( this );
cmd = new Command("Exit", Command.SCREEN, 1);
public void startApp()
TextBox t = new TextBox( "Hello ", "Ravi", 256, 0 );
t.addCommand( cmd );
t.setCommandListener( this );
display.setCurrent( t );
public void pauseApp()
public void destroyApp( boolean unconditional )
public void commandAction( Command c, Displayable s )
if( c == cmd )
destroyApp( false );
notifyDestroyed();
the code builds fine and when i run it it shows -
"Could not create icon com.sun.midp.midlet.Selector$MIDletInfo@8e597cUnable to create MIDlet ravi"
in my toolbar ................
can any tell me ..... how to set these icons........
thank you
ravi

Hi there,
I can successfully compiled these code and generated .JAD file. but when I try to convert inot PRC. It show me following error message:
File:E:\j2me_cldc\apps\HelloWorld\bin\HelloWorld.jad Result:Failed: The .JAR file corresponding to the .JAD file you want to convert is missing. Java Applications (MIDlets) are represented by both a .JAD and a .JAR file pair. Both the .JAD and .JAR must be present to convert the MIDlet to a .PRC file. Please make sure both the .JAD and the .JAR files are present.
How can I get aforementioned JAR file? Just pack the class file by myself or something else needed to be done additionally? Please give me a hand...
HeChangrun

Similar Messages

  • Hello, tell me please why do not work Push notification in the official Iphone 3gs, firmware 5,1,1. Before that was flashing 5,0,1 first about 3 months of work, recently ceased. Tell me what to do? Phone official!

    Hello, tell me please why do not work Push notification in the official Iphone 3gs, firmware 5,1,1. Before that was flashing 5,0,1 first about 3 months of work, recently ceased. Tell me what to do? Phone official!

    it seems there is some kind of problem with this 3gs phone. i have been trying to resolve this problem for 4 days now

  • Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • Change password on the first use - does not work

    Change password on the first use - does not work.
    Created a user and specified 'Change password on the first use' - when user logs in - the 'Change password' window does not pop- up.
    Please advise.

    (APEX 4.0.2) I am running into this same issue - if you don't set the password expiration and locking to 'Yes', the user gets into the app without being asked to change the pw.
    When you do set expiration and locking - after the user logs on with their temporary password, it does take them to the change password page (4155:50) but the username is blank. Because the username didn't get to the page the old password will never match and you get the "Invalid password" message.
    What am I missing? Anyone successful doing this?
    Simple application, default authentication, no javascript, HTTP_SERVER, no ssl.
    Thanks,
    Steve

  • World tv pro HD is not working what do i do

    World tv pro HD is not working what do i do

    I contacted Apple tonight and made them aware of the issue.  They refunded me my money but said that no one had contacted them on this issue and the more people who contact them the more they can do. So we need all 600 people who have commented in the App Store reviews to call Apple so they remove this complete Scam from their system.  Yes, I agree they should be doing this themselves but get your money back and make this an issue.  Apple should be VERY concerned when World TV is #5 paid app and Pages and GarageBand are the next two respectively.
    jp

  • Hello my ipad 2 mic is not working. I tried vacuuming. Still no changes. Pls Help

    hello my ipad 2 mic is not working. I tried vacuuming. Still no changes. Pls Help

    Try restoring the IPad. Either plug it into your computer or go to iPad settings, reset, all content and data. Restoring it should fix any software issues if it's a software problem. If that doesn't work it's likely a hardware issue and can't help you there. Have to take it into an apple store or authorized seller.

  • HT1414 Things that i downloading the first time it not working now why is that

    Things that i downloading the first time it not working now why is that

    Hi there,
    I would restart your device and pc, it could also be a faulty USB connector.
    Try reinstalling iTunes.
    You could also try running iTunes as an administrator (Windows), you can do this by right clicking on the icon and clicking "Run as administrator".
    If this still continues, then take your device to an Apple retail store.
    Hope this helps!

  • TS2799 call of duty world at war zombies does not work

    I had purchased this game yesterday and it will not start

    Note that the current version of Call of Duty World at War: Zombies does not work on the new iOS 4.2.1 - it crashes each time. This is due to the intro video. I have a support call logged with Activision on this but they don't seem to be to bothered hence why I will ask for a refund and not bother with their products going forward.

  • After "Hello World" - my first adventure in accepting user input

    Hey
    I'm trying to teach myself java and I'm attempting to move on from printing hello world to the screen :)
    I've written the following:
    import java.io.*;
    public class firstapp {
         int value1,
              value2,
              result;
         public static int add(int value1, int value2){
             return value1 + value2;
         public static void main(String args[]){
              int value1,
                        value2,
                        result;
              BufferedReader reader;
              reader = new BufferedReader(new InputStreamReader(System.in));
              //try block
              try{
                   System.out.println("Please type the first number");
                   value1 = reader.read();
                   System.out.println("Please type the second number");
                   value2 = reader.read();
                   result = add(value1,value2);
                   System.out.println("Added together they equal " + result);
         catch (IOException ioe){
              System.out.println("Something bad happened");{
         }It doesnt do what I expected though. It prompts for the first number which i enter. It then prints "Please type the second number" but doesnt accept any input and goes on to print "Added together they equal 62" (this is when 1 is entered as the first number).
    Im so new to this so excuse it being the most basic of basic questions. But where is it getting 62 from?
    Thanks

    BufferedReader.read() isn't the best method for this. It reads a single character, which you store as an int. If you entered "5" for example, the ascii value of 5 is being stored, not the value 5. The second read() call is most likely reading the carriage return, so it adds 53 and 13, and prints that out, for example. If you have version 1.5 or better, use the Scanner class instead, it has a nextInt() method that does what you want.

  • Change Password on first use does not work properly.

    I have created apex application user in Oracle Apex 3.2 as follows
    BEGIN
    APEX_UTIL.CREATE_USER(
    p_user_name => 'NEWUSER1',
    p_web_password => 'secret99');
    END;
    As in the documentation
    p_change_password_on_first_use  IN      VARCHAR2    DEFAULT 'Y',
    User should be prompted to change password at first use. But it does not work properly. There is no such message. Still accepts user to log in with old passord that was first given to the user. I have tried explicitly to ensure change password at first log in. by
    BEGIN
    APEX_UTIL.CREATE_USER(
    p_user_name => 'NEWUSER1',
    p_web_password => 'secret99',
    p_change_password_on_first_use =>'Y');
    END;
    Still does not work. How can I ensure user to change password on first login.
    Hasan Al Mamun
    Programmer
    Bangladesh Bank
    Dhaka, Bangladesh

    Might be a long way around the problem but I would utilize a boolean flag in a column (FIRST_LOGIN) your custom auth table set to 'Y' when you create their account. Then on the login page have a page process something like:
    ** NOT TESTED **
    declare
    v_first VARCHAR2(10;
    v_session NUMBER;
    begin
    v_session := APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID;
    select FIRST_LOGIN into v_first from AUTH_TABLE where user_name = :P101_USERNAME and :P101_PASSWORD;
    if v_first = 'Y' then
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v_session,
    P_FLOW_PAGE => :APP_ID||':2' *** THIS IS YOUR PAGE TO HAVE THEM RESET THEIR PASSWORD ***
    else
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v_session,
    P_FLOW_PAGE => :APP_ID||':1' *** MAIN LOGIN PAGE *****
    EXCEPTION WHEN OTHERS THEN
    *** handled **
    end;
    The page 2 in this example would have an few items for them to enter their new password twice, a page process to update their password in the auth table and then redirect them to the intended first page.
    Not sure if it meets your setup.
    Ricker

  • Fit to Fill: First time trying, not working

    Am working through Weynand's Apple Training Series book for FCP HD (4.5), and stumped on p. 610-611; first time using "Fit to Fill" but not working - neither the section in the Edit Overlay, the green edit button in the Canvas, nor the Shift-F11 (which makes all the screens disperse). I get this prompt: "Edit operation had no effect. Check the target tracks. You may need to open the Source clip into the viewer [already done] in order to see all the target tracks." Something in my settings? Thanks in advance.

    Resolved. I had to connect the Source and Destination buttons. There hadn't been a reminder in the textbook.

  • Windows updates not working because it extract patches on Mac partition first., Windows updates not working because it extract patches on Mac partition first.

    I have installed BootCamp 5.1 and Windows updates not working because it extract files on Mac partition before installation. Is there any workaround for same ?

    To replicate this issue - Try to download .net framework 4.5 from microsoft website and than run that setup on windows partition.
    Before installation. it will first extract all the binaries to a other drivers, since in my case other primary drive is E which is a Mac partition so it always give me an error while extractiing and therefore setup is not able to execute propely.
    Let me try to get the screen shot of error and send it here.

  • Hello! i have a problem, not working flash player on a Mountain Lion 10.8.4

    hello! I have a problem, use Mountain Lion 10.8.4 and my flash player not work now. I was install more other version from official page Adobe but any result. Pls Help me.

    Chrome comes with built-in Flash. That is the difference.
    Try this.
    1. System Preferences >Other/ Flash Player> Advanced >  Delete  All
      2. Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Quit Safari.
        Restart computer. Relaunch Safari.

  • First Keyboard Stroke Not Working

    Hi, this is an issue I believe was in play last year. When I first type on my internal keyboard the first keystroke does not appear. For example, if I am typing an email and type "and" it will appear as "nd". This behavior is apparent in all applications and not key specific. After I have typed a few letters the problem goes away. I think this problem was fixed by a software update by Apple in the past but it has resurfaced and is annoying. Would a PRAM reset or some other fix help? Any ideas? Incidentally, this problem has resurfaced for me using my MBP's internal keyboard. I normally use an external keyboard at home and the problem only resurfaced now that I am traveling on vacation without the external keyboard.
    Mahalo (thanks)
    Ken

    Hi, Ken. How about updating your OS to 10.4.11 and seeing whether the problem goes away?

  • First boot does not work

    Hello everybody,
    Today i decide to do a bench pc test to my Msi z97 gaming 9 ac with I7-4790k and AMD R9 290x as i am waiting for my case to arrive, and start my pc.
    I did the bench pc test finally after reading the manual, but my tv with hdmi cable can not recognize any thing, and it keeps showing "no signal". I am a bit worried about missing something, but every thing is working cool without any problems, i can hear the fans, and mother board lights as well as my GPU. I am concerned about what i am hearing from others bending pins in motherboard, but this is my first experience, and i placed the cpu smoothly. I need help guys as i am waiting for my case to arrive. Ram is kingston beast 2400mhz 2 pieces 8GB in slot 1 and 3. Thats it waiting for your solutions guys.

    Quote from: Sea Dog on 09-July-14, 03:29:01
    0x66 CPU DXE initialization (CPU module specific)
    Something is amiss with the CPU. Double check the 8-pin PSU power connection to the mainboard. The CPU may need to be removed and the CPU socket inspected with a bright light and magnifier for any bent pins.
    checked the cpu socket there is no bent pins.... and 8 pin psu power is connected to cpu section, but i am worried about something which is the PSU it supports 16A/250v but in my country we are using 10A/240v does this consider a problem ?

Maybe you are looking for

  • How can I make a tabbed pane transparent ?

    I have a tabbed pane placed on a JPanel with an image background. I added a tabbed pane with tabbedPane.setOpaque (false), however I still can't see the image behind the components that were added as tabs in the tabbedpane. Any help will be greatly a

  • Can I restore a version of Microsoft Office I have on an external hard drive, and then load my current OS and files from Time machine?

    I have a disk that has a file that restores my original mac settings on programs on my mac. Its has an old version of Microsoft office that I really liked and wanted to restore that to my computer. Sadly this involves wiping the computer clean and pu

  • Copying pictures to cd

    is there a way to get pictures on a cd without them being in separate folders? i put a bunch of pictures on a cd and when i opened it up, each picture was in its own folder. had to open each folder separately to view. would like to make a slide show

  • Duplicate tunes in library

    I have seen this in past posts, but i have not found a solution. I have duplicate tunes in the library, these files are not duplicated, so wy do they apear twice in the list? edit>show duplicate, actually duplicates whats in he list already (times 4)

  • Mail won't autofill when sending to Company!

    I have discovered a weird problem, auto fill is working fine on all my contacts, but when I start typing a Company Name mail won't auto fill it from the Address Book. Any Ideas!