New to j2me

hello i m new to j2me and i was wondering
1. if it is possible to run these programs on window xp (and if so, how)
2. which good editors are there for j2me
3. are there any links to a good tutorial for j2me
thanks

A good tutorial is:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
For a text editor, use Notepad or Textpad (available from http://www.textpad.com). For a newby (which I consider myself) these are good, because unlike some CASE tools, these generate no code for you--you have to do everything, which is the best way to learn. After you learn the basics, then using tools like JBuilder, come in handy.
What I like about Textpad is that it highlights keywords and matching parens and braces.

Similar Messages

  • Help: New to J2ME (bluetooth) programming

    Hi peoples
    I am pretty new J2ME. I am trying to work on a project by using client server methodology, initially I would like to connect mobile phone with computer so that it can fetch data from database that situated in the computer.
    I also need some direction installing java classes in actual mobile device.
    Please help
    Many thanks
    -Immy

    Hi,
    You need to give more information regarding what IDE you want to use etc. However, I am using Netbeans 5.0 with JDK1.5 alongwith Netbeans Mobility Pack 5.0. All of these can be downloaded from the sun website. You'll also need Java Wireless Toolkit Latest version. Once this has been properly setup then you'll need to follow some examples to see how things work in J2ME. I think you can start from http://www.netbeans.org/kb/50/quickstart-mobility.html
    To communicate with your PC using bluetooth you'll need a Microsoft support bluetooth dongle and an API than you can use to access services. I am using Bluecove 1.2 and it is working perfectly fine. It can be downloaded from http://sourceforge.net/projects/bluecove/.
    let me know if you have any further questions.
    Thanks,
    Sid.

  • Update records in adressbook in J2ME(NEW TO J2ME)

    Hi all,
    I am trying to update the records in an address book in J2ME, but I can't do it, since there is no UpdateRecord( )
    How can I do it?

    I think the method you're looking for is javax.microedition.pim.Contact.commit() inherited from interface javax.microedition.pim.PIMItem.
    {color:#0000ff}http://www.forum.nokia.com/document/Java_ME_Developers_Library_v1/GUID-654A42A3-C453-411A-A153-366C08AEF058/javax/microedition/pim/PIMItem.html#commit(){color}
    This method persists the data in the item to its PIM list.
    See the code samples available at
    {color:#0000ff}http://www.forum.nokia.com/document/Java_ME_Developers_Library_v1/GUID-654A42A3-C453-411A-A153-366C08AEF058/javax/microedition/pim/Contact.html{color}
    In future, j2me questions should be posted in the CLDC and MIDP forum at
    {color:#0000ff}http://forum.java.sun.com/forum.jspa?forumID=76{color}
    db

  • Hi  i am new to j2me . and i have a query on RMS.

    Hi ,
    while storing the data in RMS , stored it like-----name age des .
    now i want to retrive the data individual like , if user wants only name or age or des , it has to display those contents only.if send me the code it would be helpful for me.

    Try this code for RMS
    public class HighScore extends Canvas {
    public Image BackgroundImage;
    public Image scoreHeader;
    public Image scoreTable;
    public Image backImage;
    public int key=0;
    public MainMidlet mainMidlet;
    public StartScreen startScreen;
    private int highrecords[];
    private String playerName[] = {};
    private int score[] = {};
    * Constructor creates a new instance of HighScore
    * @param mainMidlet is initialized
    * @param StartScreen is initialized
    public HighScore(MainMidlet mainMidlet,StartScreen startScreen){
    setFullScreenMode(true);
    this.mainMidlet=mainMidlet;
    this.startScreen=startScreen;
    try
    GameOver.recordStore = RecordStore.openRecordStore("highscore",true);
    highrecords = new int[GameOver.recordStore.getNumRecords()];
    BackgroundImage=Image.createImage("/icons/bg.png");
    scoreHeader=Image.createImage("/icons/highscoreshd.png");
    scoreTable=Image.createImage("/icons/highscoretable.png");
    backImage=Image.createImage("/icons/back.png");
    catch(Exception e)
    e.printStackTrace();
    * Method paint to used to draw image
    * @param g is used to draw
    public void paint(Graphics g)
    {   String playerNScore = "";
    try {
    playerName = new String[GameOver.recordStore.getNumRecords()];
    score = new int[GameOver.recordStore.getNumRecords()];
    catch (Exception e) {
    e.printStackTrace();
    g.drawImage(BackgroundImage,0,0,g.TOP|g.LEFT);
    g.drawImage(scoreHeader,18,18,g.TOP|g.LEFT);
    g.drawImage(scoreTable,18,43,g.TOP|g.LEFT);
    g.drawImage(backImage,143,199,g.LEFT|g.TOP);
    g.setFont( Font.getFont( Font.FACE_PROPORTIONAL,Font.STYLE_BOLD | Font.STYLE_PLAIN, 8 ) );
    try{
    RecordEnumeration enumhigh = GameOver.enumerate();
    int y=65;
    int i=0;
    while(enumhigh.hasNextElement()) {
    playerNScore = new String(enumhigh.nextRecord()).trim();
    int pos = playerNScore.indexOf(",");
    playerName[i] = playerNScore.substring(0,pos);
    score[i] = Integer.parseInt(playerNScore.substring(pos+1));
    highrecords=score[i];
    i++;
    int s =0;
    String ss ="";
    for(int k=0;k<highrecords.length;k++){
    for(int l=k+1;l<highrecords.length;l++){
    if(highrecords[k]<(highrecords[l])){
    s = highrecords[k];
    highrecords[k] = highrecords[l];
    highrecords[l] = s;
    ss = playerName[k];
    playerName[k] = playerName[l];
    playerName[l] = ss;
    i=1;
    for(int k=0;k<8;k++){
    if (k<highrecords.length) {
    int x=25;
    g.drawString(new String(Integer.toString(i)),x,y,g.LEFT|g.TOP);
    x+=40;
    g.drawString(playerName[k],x,y,g.LEFT|g.TOP);
    x+=55;
    g.drawString(Integer.toString(highrecords[k]),x,y,g.LEFT|g.TOP);
    i++;
    y+=15;
    } catch(Exception e){
    e.printStackTrace();
    synchronized public void keyPressed(int keyCode)
    key=keyCode;
    if(key==-7)
    //startScreen.menu_item=0;
    mainMidlet.display.setCurrent(startScreen);
    synchronized public void keyReleased(int keyCode)
    key=0;
    Regards
    Altosys Java Team

  • New in J2ME

    Hi all ,
    I am using Linux RedHat7.2 OS , jdk1.3 and jbuilder3.5.
    Currently , I am trying to program in Palm OS using J2ME technology.
    Where can i start and what that i need ??
    I am beginneer in J2ME but not in Java technology.
    Thanks

    Just get the Toolkit from Sun and off you go!

  • New to j2me programming

    i am trying to develop an application in j2me for "still image capture" using the sun j2me wireless toolkit 2.1_01. Before actually deploying the application on my phone, whether i should use a webcam or some other digital camera to capture the images?
    In the cameraCanvas.java MIDlet i am getting the error "Cannot create a DataSource for: capture://video" for the following code.
    player=Manager.createPlayer("capture://video");
    I am not able to understand if i should specify a URL or some path of the camera device in the above line.
    Someone Plz kindly help me out !!!
    bhavesh

    thanx, that linked proved useful to capture an image
    i also tried a code from nokia , but that just displays the video first and then captures an image when instructed to do so ( i tried it on a nokia 6630) , but does not have any SAVE or SEND option , Can you tell me how do i include those options?can i save the clicked image in the phone?if yes how and in which format?
    bhavesh

  • Im new to j2me and I cant install the application on a sonyericsson k750i

    Any idea what to do?
    I downlaoded Wireless Toolkit 2.5.2 - as i was not able to compile the stuff by myself.
    Later i managed to compile by batch...
    But somehow it doesnt matter how i compile.
    I can build the demo application, i got somewhere:
    public class AIRC extends MIDlet implements CommandListener{
    private Display display;
    private TextBox tbxMain;
    private Command cmdExit;
    public AIRC(){
    display = Display.getDisplay(this);
    cmdExit = new Command("Exit", Command.SCREEN, 1);
    tbxMain = new TextBox("AIRC", "Welcome", 50, 0);
    tbxMain.addCommand(cmdExit);
    tbxMain.setCommandListener(this);
    public void startApp(){
    display.setCurrent(tbxMain);
    public void pauseApp(){}
    public void destroyApp(boolean unconditional){}
    // Check to see if our Exit command was selected
    public void commandAction(Command c, Displayable s) {
    if (c == cmdExit){
    destroyApp(false);
    notifyDestroyed();
    after creating the package and trying to install it on my mobile phone, i get "Operation ist Fehlgeschlagen" == "Operation Failed", no more info.
    when i try to run it on the midp.exe emulator I got 2 diffrent errors
    midp -descriptor airc.jar
    java.io.UTFDataFormatException: invalid first byte 10110101 <-- this value is different every compilation/verifying/packaging
    midp -descriptor airc.jad
    Unable to create MIDlet AIRC
    java.lang.ClassNotFoundException: AIRC
    When I try to run it on the normal WTK emulator it works.
    ANY idea what to do?
    or what im doing wrong?
    jad
    MIDlet-1: AIRC, AIRC.png, AIRC
    MIDlet-Jar-Size: 1562
    MIDlet-Jar-URL: AIRC.jar
    MIDlet-Name: AIRC
    MIDlet-Vendor: Somenet
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-2.0
    manifest
    Manifest-Version: 1.0
    MIDlet-Vendor: Somenet
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.0
    MIDlet-1: AIRC, AIRC.png, AIRC
    Created-By: 1.6.0_03 (Sun Microsystems Inc.)
    MIDlet-Name: AIRC
    MicroEdition-Profile: MIDP-2.0
    PS: im on w2k server

    Stsrt here and look for the correct files:
    http://support.apple.com/downloads/#Java

  • Help! New to J2ME CDC

    Hi, I need some help with CDC. I am wondering if there is a way to run CDC program in the J2ME Toolkit emulator?
    Here's some extra information, don't know if its any use. I am running Windows 2000 with CDC Personal Profile. I compiled my code using "javac -bootclasspath C:\WTK21\j2me-pp1.0\btclasses.zip *.java". It works fine on Windows 2000 when I run it using J2SE. When I run it in the J2ME Toolkit it says java.lang is not defined.
    I just want to say that I'm really lost. Thanks.
    Derek
    http://users.wpi.edu/~aram/mqp/

    Sorry Derek, J2ME Toolkit emulator is made to run CLDC apps.
    I'm also trying to gather all information possible to begin to work with J2ME CDC.
    If i'm not wrong there's something like Personal Profile Emulator that you could use.
    Lots of luck and kind regards
    Jose Luis
    >
    Hi, I need some help with CDC. I am wondering if
    there is a way to run CDC program in the J2ME Toolkit
    emulator?
    Here's some extra information, don't know if its any
    use. I am running Windows 2000 with CDC Personal
    Profile. I compiled my code using "javac
    -bootclasspath C:\WTK21\j2me-pp1.0\btclasses.zip
    *.java". It works fine on Windows 2000 when I run it
    using J2SE. When I run it in the J2ME Toolkit it says
    java.lang is not defined.
    I just want to say that I'm really lost. Thanks.
    Derek
    http://users.wpi.edu/~aram/mqp/

  • Hi am new to j2me

    Ho to display map in mobile? plz send complete source code? its urgent to me ,i have demo today evening?

    thu wrote:
    Ho to display map in mobile? plz send complete source code? its urgent to me ,i have demo today evening?What you mean with map? An image?
    Go to http://www.java2s.com/Code/Java/J2ME/Image.htm

  • New to J2ME, dont know how to read files on phone mem

    i check all the .io packages, still cant find any class that would help me to read files on phone memory.
    and i see that javax.microedition.media.Manager.createPlayer(String locator), require a string input argu. how can i make this string locator point to a media file on phone memory of TF-card.
    i heard Kjava has some packages from j2se, is there any class would help me? plz someone give me a link of Kjava reference, i cant find it anywhere, thx a lot!

    oh~~~no!
    i am afraid i cant enjoy myself with file conn.
    i tried several times, only to get a "Security Exception", and i contacted with moto dev center, they say that unless i have a cert, i cant use file conn API and many other APIs that is defined as restricted!!!
    and for the cert, if i have a biz relation with moto, they could give a "Develop Certification", or i must pay a third party to get a cert...
    what a world~~~~~~~~~~~is unfair!!!

  • New good J2ME and MMAPI article...

    hi guys,
    check out this fresh article
    http://www.javaworld.com/javaworld/jw-09-2007/jw-09-mobilevideo1.html
    for Mobile video with JME and MMAPI...

    Hi Guys,
    Thanks for your advise. Unfortunately I'm a little
    disappointed about having to use an MS solution. Even
    though our organisation is MS based the API's have
    only matured in the latest framework.
    Ok, so I'm happy, to some extent, if I have to use a
    windows mobile 5 device that uses the .NET compact
    framework 2.0. I was wondering if any of you guys of
    heard of or used a tool called PocketBuilder from
    sybase?
    http://www.sybase.com/products/developmentintegration/
    pocketbuilder
    This mobile application development tool promises to
    abstract the hardware elements and simplify
    development. I think they've wrapped up the device
    specific API's and built a generic API for use around
    this tool. Its windows devices only but it gets round
    us having to re-develop the hardware interfaces on
    devices that have specific API's and that run on pre
    windows mobile 5 (I think).
    Do you think this a completely unrealistic as a tool
    or do you think it could answer my problems?
    Thanks for all your help guys.The .net API's will abstract you from the Hardware. That link just looks like its promoting a RAD tool. All the Benefits they state are the standard blar, blar, blar� Points any RAD tool would say it�s good at.
    Build a prototype.

  • Problem with Display.setCurrentItem() using J2ME-Polish

    Hi,
    I am fairly new to J2ME-polish and have encountered a situation that I am having a problem with. I am loading a form with a number of String Items. When I display the form I would like to focus to the last String Item that has been placed on the form. I have been using Display.setCurrentItem() in J2ME but when I try using it in J2ME-Polish I receive this message :"de.enough.polish.ui.Screen (3022): Screen: unable to focus item (did not find it in the container or is not activatable ) "
    Below is a snippet of my code.
            // si14 in a StringItem defined earlier in the code
            // It is the last stringItem placed into the form
            form.append(si14);
            display = Display.getDisplay(this);
         display.setCurrent(form);
         display.setCurrentItem(form.get(0));Thanks

    http://forums.sun.com/thread.jspa?threadID=686256&messageID=10864566

  • How to map lattitude and longitude on a map in j2me.

    hi all,
    i am new to this forum and new to j2me.
    i am developing a pplication to track location of a gps mobile phone.
    i am using wtk2.5.1 jsr179 to develop it
    i know how to get location of a mobile phone but i cant find any method how to map those lat long coordinates on a map...
    please help me out if anyone knows about it..
    thanx

    Hi,
    I'm afraid that this is large problem... and it's not related to J2ME.
    The first question is whether you want to use some map provider and its API or you have a bitmap and you want to place a cursor of your position in the map.
    In the first case find an API to use (I don't know any). In the second case you have to understand what the GPS coordination mean, know projection type of the used map, then find and use the transformation formulas to transform GPS coordinates to map coordinates and vice versa.
    Regarding the GPS coordinates start here: http://en.wikipedia.org/wiki/World_Geodetic_System
    Regarding the projections - my map I tried to use in my application uses Lambert conic conformal projection http://en.wikipedia.org/wiki/Lambert_conformal_conic_projection
    but it may differ from map to map.
    Enjoy :-)
    Rada

  • Where can I find a good tutorial for mobile game developement with J2ME ?

    Hi All,
    I'm completely new to J2ME programming. But I have past experience on J2SE developement. Now I would like to know that where can I find a good tutorial for mobile game developement with J2ME ?
    I'll be very greatful if I can find a useful step-by-step tutorial (eg. "The Java Tutorial" for J2SE)
    Please point me ot the direction.
    Thanks
    ZuriJAckshoT

    ibook-widgets.com    have a free tutorial book in the iBooks store.  Search for "Create your first interactive book using iBooks Author"   they also  sell widgets.
    I  dont have any connection - I  found their eBook in the store long ago  and used it to learn more about iBA.
    The best advice though, is be patient,  go back over the process step by step, I cannot  access the Help files for some reason.. but i am sure its in their.

  • Need a help in j2me-send file to a bluetooth address(mobile to mobile)

    Dear All;
    I am new in J2ME programing...
    I have an application, in which i want to send a copy of my application (application.jar) to other bluetooth enabled mobiles.
    I have code for searching and listing other bluetooth mobiles.
    i want to send file to this bluetooth address..i have the address..
    Please help me if anybody can..
    It is so urgent..

    Siyampa, don't multipost. I've deleted your other threads.

Maybe you are looking for