×

Discussion Board

Results 1 to 6 of 6

Thread: J2ME Newbie

  1. #1
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,533

    J2ME Newbie

    Am total newbie to java and its relatives . Have previous experience in Symbian C++.

    Past two days I have been trying to get my 'helloworld'

    I installed many things (pretty much everything that is there I guess) and tried to read many docs..pretty random as am totally lost in this new (to me) technology.

    I have Carbide.j 1.5(which shows that it works only standalone). Got SDK 3rd edition MIDP. Also have installed Java Wireless toolkit 2.5 for CLDC, Java2 SDK SE..Eclipse Release 3.1.2 and what not. Since I am so confused, each doc I get my hands on, tells me to read something, which inturn tells me to install something

    I would appreciate if somebody showed a single focussed path to me...would really be great help..Want to develop helloworld in Mobile Java!!

    2 days lost and not even hello world..thats pathetic

    Hope somebody hears me

    Neil
    Last edited by Symbian_Neil; 2007-02-20 at 13:18.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

    Re: J2ME Newbie

    Start with the command line (only the WTK is necessary for that) and work your way up from there. IMHO, once you know how to do things from the command line it's easier to figure out the more user friendly tools.

    2 days lost and not even hello world..thats pathetic
    Make that two weeks and you'll know how I felt when I started out with Symbian ;p

    shmoove

  3. #3
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: J2ME Newbie

    May be this doc could be of some help to you.

    Setting Up Your Development Environment
    http://sonusdream.blogspot.com/2006/...velopment.html

    Hope this helps!

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

  4. #4
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Rawalpindi, Pakistan
    Posts
    486

    Re: J2ME Newbie

    hi Symbian_Neil

    well since u have spent lot of time in ur helloworld code so here is something which will help u a lot.

    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Form;

    /**
    * Simple class that display "Hello World" on the device's
    * Display.
    */
    public class SimpleMidlet extends MIDlet
    {
    /**
    * The display to add a form to
    */
    protected Display display;

    /**
    * Called when the application starts
    */
    protected void startApp()
    {
    // create a simple form to add items to
    Form form = new Form("Simple MIDlet");

    // write some text into the form
    form.append("Hello World Test Two!");

    // get the current display
    display = Display.getDisplay(this);

    // add the form to the display
    display.setCurrent(form);
    }

    /**
    * Not used
    */
    public void pauseApp() {}

    /**
    * Not used
    */
    protected void destroyApp(boolean unconditional) {}
    }

    yes its a helloworld program which will help u see what u were doing wrong in your code.

    hope this helps
    Regards
    Nouman

  5. #5
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,533

    Re: J2ME Newbie

    Thanks a ton for very quickly sorting out my issue. Finally I see my first MIDlet working!!

    Make that two weeks and you'll know how I felt when I started out with Symbian ;p
    @ Shmoove :Very encouraging and nice of you

    @ Gopal : The link was extremely helpful for a step by step setup of environment right from the very basics

    @nicenouman : Thanks for the code.

    Given such wide variety of approaches, I just thought of focussing on one. I followed Gopals link and could successfully set up the whole thing.

    Thanks once again for the wonderful support.

    Cheers
    Neil

  6. #6
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: J2ME Newbie

    You are always welcome.. We are happy to help you as much as we can.

    Keep it going dude! J2ME is not so tough too.. I have already posted several links to start developing with J2ME. Please give a search in the Discussion Boards.

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

Similar Threads

  1. newbie: IP address of device using j2me
    By fm in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2007-01-05, 11:09
  2. Newbie - recommended Java config for developing J2ME apps
    By pkiddie in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-11-28, 01:15
  3. newbie question, which SDK to use for J2ME on 6820 model
    By sacg in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-01-05, 06:27
  4. MMS using J2ME - Expert advice needed for newbie
    By mc123 in forum Mobile Java General
    Replies: 0
    Last Post: 2003-05-12, 19:15
  5. J2ME newbie question
    By luisgonsalves in forum Mobile Java General
    Replies: 1
    Last Post: 2002-08-04, 05:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×