J2ME beginners help

Hello everyone,
I am trying to compile a beginners very first .java file and have run into difficulties.
The cldc/midp/jdk versions are shown below on the variables:
CLASSPATH: C:\J2ME\midp1.0.3fcs\classes;.
MIDP_HOME: C:\J2ME\midp1.0.3fcs
PATH: C:\J2ME\j2me_cldc\bin;C:\J2ME\midp1.0.3fcs\bin;C:\j2sdk1.4.2_02\bin;
It has come up with 14 errors on the DOS prompt, the first error:
'package javax.mircroedition.midlet does not exist'
I gave it the javac -bootclasspath command and location of the classes, but it gives me the impression it still doesnt know where it is...
What could be wrong? i've done my research and cannot find out what's the issue; i even downgraded from midp2.0fcs just incase.
Many thanks for your time,
Riku

It has come up with 14 errors on the DOS prompt, the
first error:
'package javax.mircroedition.midlet does not exist'Is this a typo? If not, you misspelled "microedition".
CLASSPATH: C:\J2ME\midp1.0.3fcs\classes;.I don't know the directory layout of this edition, but it looks like it should beC:\J2ME\midp1.0.3fcs\classes.zip;.

Similar Messages

  • Need J2ME project Help

    Hello everyone,
    I am a student and am in the process o f learning Java as part of my syllabus. A part of year work we have to a submit a live project...for that i have chosen a local organization that runs trains and provides electricity.
    All the information about the orgztn will be stored in the database like customer their ID and bill, and as for trains the area, frequency, stop name code...etc.....
    The customers can access the orgztns info via a mobile phone..so they can enter thier starting point and end point and the train number to borad along with the fare will be given, if the user wishes he can view a graphical route that the train will take to reach the destination(planning to use a JPEG image)...also they can view their electricity bills too and view graphical analysis of their consumption for the past one year....
    I ma completely new to J2ME as well as J2EE.....Please guide me as to how will i connnect my mobile J2ME app to my remote server that will in turn connect to database and retrieve the required info and give back to J2ME app.....
    how to I go on doing this...please help me as I am totally confused as to how will i build the system???
    Thanks for your help.
    Regards,
    Abigail Venturi

    That's quite a broad question. Here's the list of technologies I'd use....
    You'll likely need to use a client/server methodology...
    Server side: Create a servlet to connect to the database, and do all the work like route finding, image creation for the routes, etc. Store your info in a relational database like MySQL or whatever. Servlets run in a web server, I prefer jetty, but most web servers have support for Java servlets. You don't even need to use Servlets/Java, as you can use anything you want for server side. Pick what you are most familiar with php/cgi/java/etc
    Mobile: Just have a front end for user choices on the device, then send the choices to the server using an HttpConnection, and retrieve the results in the stream.
    The reason for doing everything on the server is simple: limited memory. If you are supposed to have a graphical representation of the route the user is going to take, you'll likely need more images than will fit on the mobile device. It depends on the detail required though. Also, a database of customers is probably too large in itself to fit on a mobile, and searching is most easily done using something like a relational database.

  • Does someone know  link for good tutorial  on j2me ,please help

    plese help i m a newbie in j2me kindly suggest tutorial which guides its reader
    from grass root level

    Have you looked over this:
    http://developers.sun.com/techtopics/mobility/midp/articles/wtoolkit/
    Good Luck
    Lee

  • Beginners Help

    Hi All,
    I am learning J2EE technology. Please suggest me any book which gives complete procedures like packaging an application in war, ear format, deploying applications, web applications directory structure and other details on various application servers like weblogic, websphere.
    It would be a great help.
    Thanks in advance.
    Maurya

    Refer to
    http://edocs.bea.com/wls/docs70/programming/packaging.html

  • J2ME simple help

    THIS WAS MY FIRST J2ME application. I have a sony ericsson K800i phone! and can i run this application on that mobile phone
    sony ericsson K800i supports MIDP2.0
    this application is working in netbeans!!!!
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class Midlet extends MIDlet
        private Form form;
        private Display display;
        public Midlet()
            super();
        public void startApp()
            form = new Form("004");
            String msg = "Hello world K00000000004";
            form.append(msg);
            display = Display.getDisplay(this);
            display.setCurrent(form);
        public void pauseApp()
        public void destroyApp(boolean unconditional)
            form = null;
            notifyDestroyed();
    }

    I assume you mean the app doesn't work on the phone? The default settings on Netbeans won't run on most phones. Make sure the properties of your project match your phone. Your phone is probably MIDP2.0 and the default in Netbeans is 2.1.

  • Bootcamp Real beginners Help

    Hello
    I have a spare 640GB HD sitting in my Mac Pro after updating the main HD.
    I am thinking of setting it up for Bootcamp but need some really basic help to get this going.
    I posted this here because it will be only be for games and WinUAE, it will never go online.
    I need a real idiots for this.
    How much HD space will I require ?
    How do I install it ?
    What Windows version to install ?
    How do I boot into Bootcamp ?
    Can files just be copied across to the bootcamp drive ?
    How do I Boot out of boot camp ?
    Will I need virus software ?
    Real basic stuff is what is required.
    Thanks.
    Message was edited by: Washac

    You did good.
    Except what model/year MP do you have and what MacOS are you using? Put it in your profile.
    "Boot Camp" is technically just a set of Windows drivers to use Apple hardware and it also installs an "Apple Software Updater" and Boot Camp control panel so you can pick which OS to boot to while in Windows. While booted in the Mac you can pick the Windows startup disk in the "System Preferences" / "Startup Disk".
    Brief run through:
    Boot Camp Assistant while booted in the Mac, have it partition the drive, it will ask to download the Boot Camp drivers (or the disk if you still have 10.6) then it will reboot into the Windows installer, the Mac is no longer in charge, have Windows format it NTFS and then install, after it installs it will reboot into the Windows new OS, THAT is when you install the Boot Camp drivers.
    Read the installer AND the Windows 7 FAQ AND the Boot Camp FAQ a couple of times, and I mean a couple of times and it will help quite a bit. Everything you need is here. Browse the forums if you have time to just get a "gander" at what problems people have in general.
    If you have to buy Windows you might as well buy the latest, W7 Home Premium is fine, and is still compatible with quite a few games, etc. do a search on Yahoo/Google for the cheapest price. Amazon, NewEgg, etc, seem to be the cheapest. Seems to average around $100 US. If your going to college you get a **** of a discount.
    What are you going to use the the rest of the HD for? I just have a HD exclusive for Windows. A lot easier and don't have to worry about mistakes.
    With Mac Pro's, If you do the same, you have to have the future Windows HD in bay #1 or take out the lower numbered HD's. Example, If your going to install it on a HD in bay 3 then take out 1 & 2 and you can leave 4. Or just swap out whatever is in 1 now. You can change back when your done.
    Be aware of partition size, I downloaded the BoarderLands game from the Mac-APP store and it was an 8 gig download, (Lord, their servers are slow! 18 hrs on a 1.5 DSL connection.) if you add three more games at say 5 gigs each you've already lost over 20gigs of free space for your partition. Now imagine over the next year. You don't want to do it again.
    You cannot drag a file from the Mac desktop to the Windows HD as the Windows "NTFS" format is "read-only" from the Mac. If I need to exchange files I just drag it to my misc storage drive and they can both access it or just leave my USB stick in and use that instead. (via a USB extension cable so it doesn't get busted off)
    As far as Virus control, AVG is free as are a few others so you might as well use one. W7 does have one but it keeps suggesting to use a 3rd party?

  • Complete beginners help.using ImageIcon and cant assign images

    how do assign the ImageIcon for the front and back to this class.i have two gif files in the same directory. to test the card class i want to press the flip button to display the front and then the back. i am making simple card game but am very new to this and am stumbling at the basics.any help much appreciated. here is my attempt at the code.
    ( havent put in the paint() )
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class JCard extends JComponent
    private int value;
    private ImageIcon FrontImg;
    private ImageIcon BackImg;
    private int size;
    private boolean faceup;
         public JCard()
    this.value= value;
    public int getValue()
    return value;
    //returns the width of the card
    public int getWidth()
    return getSize().width;
    //returns the height of the card
    public int getHeight()
    return getSize().height;
    //returns true if the card is face up
    public boolean faceup()
    return faceup;
    //flips the card
    public void flip()
    if(faceup)
    faceup = false;
    else
    faceup = true;
    repaint();
    public void setBackImg(ImageIcon img)
    BackImg = img;
    public void setFrontImg(ImageIcon img)
    FrontImg = img;
    public void paint(Graphics g)
    //test JCard
    import javax.swing.*;
    import java.awt.event.*;
    public class TestJCard extends JFrame implements ActionListener
         private JCard card = new JCard();
         private JButton b1 = new JButton("flip");
    public TestJCard()
    super();
    JPanel p = (JPanel)getContentPane();
    p.add("Center",card);
    p.add("South",b1);
    b1.addActionListener(this);
    public void actionPerformed(ActionEvent ae)
    card.flip();
    //** To close window**//
    class WindowHandler extends WindowAdapter
    public void windowClosing(WindowEvent we)
    we.getWindow().hide();
    System.exit(0);
         public static void main(String args[])
    TestJCard fm = new TestJCard();
    fm.setSize(300,300);
    fm.setVisible(true);

    I'm not sure if I understand exactly what you're asking, but if you're wondering how to create/initialize and ImageIcon from an image file on a local disk, I believe it is as simple as:
    ImageIcon i = new ImageIcon("path/filename.ext");
    note: the path can be relative (i.e. "images/pict1.gif")
    or explicit ("c:/project1/images/pict1.gif").
    Hope this is what you're looking for.

  • J2me Game help

    hi,
    im developing a small game. in that game the character jumps from one hurdel to another. i made my character to move upword and then forward to land on specific location....
    here is my code to do that...
            // jump up
             for (i = 0; i <= 30; i++){
                  duckJumpSprite.move(1,-1);
                  duckJumpSprite.nextFrame();
             // going down and forward
             for (j = 1; j <= 30; j++){
                  duckJumpSprite.move(1,1);
                  duckJumpSprite.nextFrame();
             }when executed it obviously do not shows any character between jump starting position to jump ending position as it goes too fast in paint() method...
    i just c character in my starting position and then in ending position....
    now question is that how do i make the intermediate states of the jump visible on the screen.
    plz help me
    thanks

    hi,
    ive implemented it this way...
    int distanceX = 1;
    int distanceY = 1;
    new Thread (new Runnable(){
                   public void run(){
                        while(true){
                                       try{
                                                 Thread.currentThread().sleep(10);
                                                 if(up){
                                                            // we are Moving up
                                                              //System.out.println("ducksprite Y coord   >>>    "+duckSprite.getY()+"  jumpheight  >>  " + jumpHeight );
                                                              if (duckSprite.getY() > jumpHeight  ){
                                                                       duckY -= distanceY;
                                                                       duckX += distanceX;
                                                              }else
                                                              if (duckSprite.getY() >= jumpHeight ){
                                                                       duckY += distanceY;
                                                                       duckX += distanceX;
                                                                       System.out.println("Hello going down ");
                                                                     up = false;
                                                 else if ((duckSprite.collidesWith(backTiledLayer,true)) || duckSprite.collidesWith(frontTiledLayer,true)){
                                                      break;
                                                 else if (!up){
                                                           System.out.println("Hello going down permianately");
                                                           // we are moving down
                                                           duckY += distanceY;
                                                           duckX += distanceX;
                                                 duckSprite.setPosition(duckX,duckY);
                                                 duckSprite.paint(getGraphics());
                                       } catch(Exception exception){
                                            System.out.println("exception came in jump thread  >>>  ");
                   }}).start();is it ok
    almost the same as u did but i did this before i saw ur reply...

  • Rounding Double in J2ME, need help

    hi....
    i using J2me to develop scientific calc.
    but i have problem with rounding the double result.
    when using J2SE i can use DecimalFormater...
    is there something like that in J2ME ???
    tanks...

    1. Convert the double to a string using Double.toString(yourDouble)
    2. Use yourString.substring and indexOf(yourString, ".") to get the part you need. Concatenate trailing zeros if needed.
    3. Convert the resulting string to a double using Double.parseDouble(YourResultString)
    The string manipulation will be different depending on whether you want to round to a certain number of decimals or a certain number of significant figures.
    If you need a code segment pls supply more details, have tested this approach and it works.
    Regards, Darryl

  • J2ME RMS HELP PLS

    I'm getting the following error which to me i think it means it is unable to find the record. As you can see i've created the record successfully and i can store the record too but when i try to retrieve the record i get the following error:
    Record store now has 1 record(s) using 80 byte(s) [999807 bytes free]
    javax.microedition.rms.InvalidRecordIDException
         at javax.microedition.rms.RecordStore.findRecord(+98)
         at javax.microedition.rms.RecordStore.getRecord(+22)
         at EventsManager.commandAction(+194)
         at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
         at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
         at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
         at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
         at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.handleVmEvent(+186)
         at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+57)here is my code for display record
    else if (command == view)
                   try
                        for (int i=0;i<rs.getNumRecords() ;i++)
                                  title = new String("");
                                  with = new String("");
                                  byte b[] = rs.getRecord(i);
                                  String str = new String (b,i,b.length);
                                  int len = str.length()+1;
                                  display_Events(len);
                   catch (RecordStoreException exc)
                        exc.printStackTrace();
                   catch (Exception exca)
                        exca.printStackTrace();
                }displayEvents method code
         public void display_Events(int len) throws Exception
              int recordSize=0;
              if (len<rs.getSize())
                   recordSize = rs.getRecordSize(len);
              if (recordSize > 0)
                   String value = new String(rs.getRecord(len));
               // Report progress to the console
               System.out.println("Retrieved record: "
                                   + len + " Value: " + value);
         }can someone please tell me what i am doing wrong please
    thanks in advance
    Edited by: Asad86 on Mar 29, 2009 1:49 PM

    Hi,
    Record identifier is NOT record index. When reading a entire record store you'd better use
    rs.enumerateRecords ()Hope that help
    Jack

  • J2me midp help

    Hi All!
    I'm new to java, but i want to build J2ME (MIDP) applications.
    I can write *.java files and run it after compiling.
    But i want to write low-level APIs (games) and i have an example from
    which i can start. It's a dog animation and it consists a Doggy.java and a DoggyMIDlet.java and some *.pngs. Now how can i compile thesse files into one .jar??? I have an Ant, and a Wireless Tollkit but i cant use any of them :(( Where can i find some tutorials to j2me midp (game) writing?Thanks for the replies in advance.
    Wolf

    In the "wireless toolkit(wtk104 - last version)" dir there are 3 games which you can study.
    catalin

  • J2me  RMI HELP

    hy to all,
    I'm new with j2me.
    I must develop an java rmi client for hp6915.
    what jvm version I must download??
    I downloaded Mysaifu jvm. It is rmi rmi enabled???

    There is no direct RMI support in J2ME like in J2SE. You have to use something else for your communications. The most commonly used way (and in fact the only way that is mandatory in the MIDP 2.0 spec) is via a HTTP or HTTPS connection. For more information see the MIDP 2.0 spec, in particular the section about the General Connection Framework.

  • Php beginners help

    G'Day, I have only used dreamweaver for making static pages
    so far, but now want to create a dynamic php page. I have installed
    and running IIS on XP. At this stage all I want to do is
    create/experiment and make a simple page to list my 45's collection
    for my jukebox. Do I need to actually install a PHP application or
    will Dreamweaver allow me to create and test in its own
    environment?.. P.S. I have looked at the tutorials and purchased a
    book (The missing manual) but am still a little confused as to the
    foundations required to start this new PHP adventure.
    Thanks
    Ben

    Hi Ben:
    You need the PHP application server running in order for PHP
    code to
    process. It's the same with any server model . Cold Fusion to
    run that ..
    ASP to run that (but you don't notice cause it's built into
    IIS). There is
    a version of PHP that runs on IIS and it's downloaded at
    http://www.php.net.
    If you are going to host PHP sites on a Unix server however,
    you are better
    off to download and install Apache (
    http://www.apache.org) and
    install that
    version of PHP. It's up to you .. I would advise matching the
    production
    environment as closely as possible.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner''s
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "ben here" <[email protected]> wrote in
    message
    news:ekkv1a$kq6$[email protected]..
    > G'Day, I have only used dreamweaver for making static
    pages so far, but
    > now
    > want to create a dynamic php page. I have installed and
    running IIS on XP.
    > At
    > this stage all I want to do is create/experiment and
    make a simple page to
    > list
    > my 45's collection for my jukebox. Do I need to actually
    install a PHP
    > application or will Dreamweaver allow me to create and
    test in its own
    > environment?.. P.S. I have looked at the tutorials and
    purchased a book
    > (The
    > missing manual) but am still a little confused as to the
    foundations
    > required
    > to start this new PHP adventure.
    >
    > Thanks
    > Ben
    >

  • Beginners Help, Submission Data

    I am ABSOLUTELY NEW to coldfusion. But I believe I have a
    good head on my soldiers and the "Building Your First Database
    Website" tutorial gave me a lot to work on. So using dreamweaver 8
    I am trying to basically make a system where you can look up and
    edit customer data, products, employees, and invoices. I am now
    getting to the hard part which is actually making the invoice
    portion of the site. I drew out on paper an idea on how I would
    like it to look. Basically I would like then to type in a product
    ID and have all the other fields about the product fill in. Then
    they would type in a quantity number and then it would times the
    price and give a total. I HAVE NO IDEA on how to even have it
    submit and retrieve information based on what the user might input.
    I am not 100% sure what information you all would need/like but it
    is all located on our webserver.
    http://reaconcomputers.com/database/
    The webserver is not the testing environment so I do not have our
    database setup with coldfusion on the webserver. Let me know what
    information you all need because I am very sure that I have been
    very broad and not detailed enough.

    I re read what I said and realized how confusing it
    sounds..... Let me re phrase this to something basic, also I was
    hoping someone could post some sample code on how to do this.
    I have a table called Invoices and a table called Products
    I wanted to have a text field called Quantity (not currently
    in any of the tables but user enters value) and a text field called
    Product_ID (user enters value, primary key under Products) and the
    user click like a submit button OR it automatically pulls up the
    rest of the information. I wanted it to pull up a product name and
    price field based upon the user entry in Product_ID.
    What perhaps would be some sample code to:
    Take the values from the text boxes, put those values into an
    sql query, retrieve the values and fill in some text boxes.
    Thank you.

  • Beginners help required

    I am new to Lightoom and have just received Lightroom 3.6.     How do I use it: i.e what are the basic fundamentals and how do I go about it?
    I do know that it will translate my raw files into TIff and Jpeg.    But advice as to the basic start funtions would be appreciated.
    David Rodway

    I do know that it will translate my raw files into TIff and Jpeg.
    It will only do this if you specifically tell LR to do so. This does not happen by default.
    How do I use it: i.e what are the basic fundamentals and how do I go about it?
    http://tv.adobe.com/product/lightroom/
    Look for video tutorials that are clearly aimed at beginners

Maybe you are looking for

  • Restoration problem

    Hi We are in the process of setting DR for our production environment. We are using legato tape backup to restore the DB. The DB was started in nomount and trying to restore controlfile from the Tape backup. We use following command to restore the co

  • JavaFX with external libraries

    Hi, I would like to get some help about compiling a JavaFX code with external libraries. I've searched around a lot, but cant find the solution. Basically I have a JavaFX application, that uses images (they are under the src/ folder as they suggest i

  • Why am I seeing iCal invites to other peoples calendars after updating to Mavericks?

    After my upgrade to Mavericks, using iCal 7, I am now seeing many invites that are to calendars I subscribe to (i.e. not my calendars) - even though these calendars are just being shared as "Public" and not ones that I should be able to edit. Note: C

  • Java style in a document

    this may be the wrong place to ask so just tell me to move on if it is. but how would i go about writing java in word 2007 to say how could a change the formatting style to be more helpful like making tab 3 spaces long and not capitulating my words,

  • ID and Icloud no answered in Iphone

    Mine IDapple no Iphone is name that I have change and it not active. If I put my finger over... not happen. All time appear a mensage for Terms and Conditions for Icloud BUT the the Icloud icone is no active too! I put my finger over the Icloud icone