Wanna Begin J2me

Hey dudes,
I want to start mobile programming with j2me. I am new to java but i am an experienced php developer. so I started java tutorial a few days and i am now in the Swing section. I want to know that should I read this section and does swing make sense in j2me?
and another question is: When I can start j2me books and references?
Thanks in advance

When you want to learn J2ME you should first consider what platform you are going to target.
CLDC - MIDP
This is for mobile device platforms. Resources are very limited but most phones have support for the newer versions (CLDC 2.0 and MIDP 2.0) of these API's with additional functionality. User interface capabilities for these platforms is very limited because you have to work with a very small screen, so no Swing or AWT. Development using these platforms is actually different than development using J2SE because you need to take care with resources; efficient and optimized programming is often needed for slightly larger applications.
If you want to do mobile game programming I would advise you to take a look at J2MEPolish:
http://www.j2mepolish.org/
CDC
This is generally for smartphones and PDA devices. CDC is built on top of Swing, but you can also use AWT (and that is generally a lot faster). Here is a list of possible JVM's, at least for PocketPC/windows mobile devices:
http://www.berka.name/stan/jvm-ppc/java_for_pda.html
If you want to develop for pocketpc devices I would look at the .NET compact framework in stead, it is fully featured and free. but that is just my experience, in my opinion java on PDA/smartphone devices is still too primitive to consider.

Similar Messages

  • Okay, so I'm completely lost..... (beginer - J2ME ;.(..)

    Hi everyone,
    I'm trying to setup j2me on my Vaio Laptop (PCG-F490) running on windows 98se. So far I have downloaded:
    j2me_wireless_toolkit-1_0_4_01-bin-win.exe
    midp-2_0-src-windows-i686.zip
    pjavawince-1_0-mips.zip
    j2me_cldc-1_0_4-src-winunix.zip
    Do I need anything else???
    What goes where and why?
    I would like to create a simple HelloWorld.java on my laptop and compile it and be able to run it on my Cassiopeia E-125 (MIPS VR4122, WIN CE 3.0.9348)
    Did I download the latest versions of each software (that will run with JDK 1.3.1_07)???
    Any links with simple terminology or tutorials greatly appreciated.
    Please help, and if I'm asking the wrong forum, redirect me.
    Thanks in advance.......

    No expert myself as I just went through this. According to sun for PersonalJava ( as your developing for CE) you shold be using java 1.1.8 to compile your source. I had to use 1.2.2 (I think ) and this worked fine. Next set your Path sysvar to point to your PersonalJava directory. This will allow you to type pjava from the command line without an explicid path( eg: c:\mypj\bin\pjava). I also set my JAVA_HOME var to the PersonalJava root directory. eg c:\mypj\. Thats it. There is a doc available for download ( where you got personal java) Called "Using the PersonalJava Emulation Environment" that goes through what I mention here. Its what I used.
    As for using the smaller j2me (for cells, palmOS etc) I use the SunOne Studio 4 Mobile Edition. Its free and works great. If you want to use the Palm emulator get it BEFORE installing SunOne.
    R
    Thats all. Hope this was helpful. Again, I'm just starting out with this as well but this did work for me. I have a thread going ( on pg 1 )as well called Newbe to ce (or somethin like that). In it one of the post gives some links. As for tutorials and example code, if you find any please post them here or in my thread as I want as much info as I can get now.

  • New books on J2ME

    Hi All,
    I'm on the lookout for books on J2ME and unfortunately most of the ones out there on Amazon have been published prior to 2006. Two questions:
    - Have any good J2ME books been published recently?
    - If not, could you still recommend a few books albeit old?
    Thanks!

    Wismae wrote:
    Hi All,
    I'm on the lookout for books on J2ME and unfortunately most of the ones out there on Amazon have been published prior to 2006. Two questions:
    - Have any good J2ME books been published recently?
    - If not, could you still recommend a few books albeit old?i have two books that are quite good:
    1. Enterprise J2ME developing mobile java applications
    2. Beginning J2ME From Novice to Professional
    the first one is far more technical, however has a few very nice examples, and takes into consideration good design. the second is more the basics, and is a much easier read. but also good, nothing you couldn't find easily through google, but far easier as it spells things out in logical order.../fg
    >
    Thanks!

  • A problem with callSerially()

    Hi, guys,
    I modifed a sample sweeper anmimation MIDlet from Chapter 13 of the book <<Beginning J2ME From Novice to Professional>>. The original sweeper used a separate animaton thread along with the UI thread. I managed somehow to modify the code to use the Display.callSeriall() method and get rid of the additional thread. The code compile with Wireless Toolkit 2.5.1, but when I start to run the MIDlet, the emulator just signals some runtime errors, mainly "java.lang.NullPointerException". I thinked very hard about it, but just desparately can't figure out what is wrong. Could anyone please help me and tell me what's wrong with my code, any helpful information is greatly appreciated.
    The following is my code listings.
    ////////////////FastSweep.java////////////////////////
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class FastSweep extends MIDlet {
    public void startApp() {
    final FastSweepCanvas sweeper = new FastSweepCanvas();
    sweeper.start();
    sweeper.addCommand(new Command("Exit", Command.EXIT, 0));
    sweeper.setCommandListener(new CommandListener() {
    public void commandAction(Command c, Displayable s) {
    sweeper.stop();
    notifyDestroyed();
    Display.getDisplay(this).setCurrent(sweeper);
    public void pauseApp() {}
    public void destroyApp(boolean unconditional) {}
    //////////////////End of FastSweep.java/////////////////////
    ////////////////////FastSweepCanvas.java/////////////////////
    import javax.microedition.lcdui.*;
    public class FastSweepCanvas extends Canvas implements Runnable {
    private Display mDisplay;
    private boolean mTrucking;
    private int mTheta;
    private int mBorder;
    private int mDelay;
    public FastSweepCanvas() {
    mTheta = 0;
    mBorder = 10;
    mDelay = 50;
    public void start() {
    mTrucking = true;
    run();
    public void stop() {
    mTrucking = false;
    public void paint(Graphics g) {
    int width = getWidth();
    int height = getHeight();
    // Clear the Canvas.
    g.setGrayScale(255);
    g.fillRect(0, 0, width - 1, height - 1);
    int x = mBorder;
    int y = mBorder;
    int w = width - mBorder * 2;
    int h = height - mBorder * 2;
    for (int i = 0; i < 8; i++) {
    g.setGrayScale((8 - i) * 32 - 16);
    g.fillArc(x, y, w, h, mTheta + i * 10, 10);
    g.fillArc(x, y, w, h, (mTheta + 180) % 360 + i * 10, 10);
    public void run() {
    while (mTrucking) {
    mTheta = (mTheta + 1) % 360;
    repaint();
    mDisplay.callSerially(this);
    ////////////////////End of FastSweepCanvas.java/////////////////////
    and here is the complete runtime errors:
    startApp threw an Exception
    java.lang.NullPointerException
    java.lang.NullPointerException
         at FastSweepCanvas.run(+30)
         at FastSweepCanvas.start(+9)
         at FastSweep.startApp(+12)
         at javax.microedition.midlet.MIDletProxy.startApp(+7)
         at com.sun.midp.midlet.Scheduler.schedule(+270)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+80)

    you never actually initialized "mDisplay" object, so when you're calling mDisplay.callSerially(this)... mDisplay is null. So, in FastSweepCanvas() constructor, you'll need to set that to the MIDlets display.

  • Need UrGent ReplY

    Hello everyone, i registered here just to ask a question and see if i can get good suggestions because other forums gave me nothing informative so i am trying this one.....so here goes
    I am a Oracle beginner(no knowledge)
    I am quite good with windows
    Very Little or no knowledge with linux
    Very Fast Learner ( due to EXcessive free time, and Very Fast internet connection with determination )
    An undergraduate(1 more year) student studying Information Technology in university
    Am grounded with other disciplines like programming, networking, troubleshooting, maintenance, web design, installations etc.
    So i wanna begin with oracle but im left with a choice....what operating system( WINDOWS vs LINUX ) is preferred to learn...please i need informative answers with reasons and specifications.:D:D:D...thanks!!

    You mentioned that you are a quick learner so read this to learn that how one should ask questions on a public and free forum like this one and why its not appropriate to mention urgent especially for a question like what you have asked.
    http://catb.org/~esr/faqs/smart-questions.html
    I am a Oracle beginner(no knowledge)Okay. Bookmark this site before you do anything else and from it, start reading Concepts guide of *11.2* version. The link is, http://tahiti.oracle.com .
    I am quite good with windowsOkay
    Very Little or no knowledge with linuxYou can start with a basic course over it. I would suggest to stick with learning Oracle and not to mix it with tens of things like learning linux or anything else. Be good in Oracle and than you can learn it.
    Very Fast Learner ( due to EXcessive free time, and Very Fast internet connection with determination )No comments over it!
    An undergraduate(1 more year) student studying Information Technology in universityFinish your studies first so that you can devote complete attention towards one thing, whatever it may be!
    Am grounded with other disciplines like programming, networking, troubleshooting, maintenance, web design, installations etc.So what does this mean? If you are already so busy, do you really think that you would be able to learn oracle or anything for the matter of the fact with precision?
    So i wanna begin with oracle but im left with a choice....what operating system( WINDOWS vs LINUX ) is preferred to learn...please i need informative answers
    with reasons and specifications.:D:D:D...thanks!!Wanna? What's that word or you wanted to say 'want to' ? Use professional language over forums like this one not IM speak like u , wanna, plz! About learning, I guess from what you just mentioned above, you are already having a year with you to decide it and to get free time to learn anything with complete attention. Other than that, there is no such thing that linux is better than windows and windows is totally useless. Both are good but that depends on how much good is that person who is managing it. So learn anyone but be good in it. Linux is spreading more across everywhere so having its knowledge surely would help in addition to windows knowledge ( which you have already said you are very good at).
    HTH
    Aman....

  • Photoshop isn't working... any help?

    Hey, so I've been using PS for about a year but I'm not really keen to all the technicalities when it comes to mishaps. I mostly use it for fanart which is what I was in the middle of today when it stopped working.
    I usually hit the C + J + Control keys to open an image on a blank layer after I used the pen tool to crop it out. But my finger slipped and I have no idea what I pressed. Now the cursor is the no sign (prohibition sign like when a poster is showing that smoking isn't allowed in a certain place) and no mater what I do it won't change. I can't even exit out of it because no matter what I scroll over I just have this small no sign that doesn't react when I press any of the tools.
    Really don't wanna begin again so if I can get some help asap, that'd be nice!!! But if I have to start over I will.

    Its okay. I think I might have messed it up in general because to get to PS I have to minimize my web browser... just pressing the PS tab doesn't do anything and Google Chrome stays open.

  • I will begin a project with J2me

    I will begin a project with J2me at school.I just have some basic knowledge about J2se,and would you kind enough to give me some advice on how to get the first step?

    start with basic understanding of Midlets, Lists , Forms , CommandListeners and Record Stores.

  • Hey! I downloaded a movie from itunes yesterday. I watched the beginning of it and now i wanna go on, but itunes says that it´s not authorized for this computer. But i watched it on this computer. So, what can i do? thanks!

    Hey! I downloaded a movie from itunes yesterday. I watched the beginning of it and now i wanna go on, but itunes says that it´s not authorized for this computer. But i watched it on this computer. So, what can i do? thanks!

    Log out of the iTunes Store on your device:
    Settings>iTunes & App Store...tap your Apple ID, then select "Sign Out"
    Reset your device:
    Device Reset (won't affect settings/data/music/apps/etc)
    1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
    2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
    3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally.
    After the device has restarted, sign back in to the App Store as above.

  • I am very confused. When I wanna to update my apps in app store, it shows the account which is my iPhone one is not my iPad one. how can I reset to my iPad account?

    I am very confused. When I wanna to update my apps in app store, it shows the account which is my iPhone one is not my iPad one. how can I reset to my iPad account?

    And I am very confused by your query. Your iTunes account is the same on all devices - unless of course you have multiple accounts to begin with.
    If you do have another Apple ID that you use for the iPad purchases, you can sign out of the account that is on the iPad in Settings>Store.
    Perhaps a few more details from you could clear up the confusion???

  • How do i read complete line from a text file in j2me?????

    how do i read complete line from a text file in j2me????? I wanna read file line by line not char by char..Even i tried with readUTF of datainputstream to read word by word but i got UTFDataFormatException.. Please solve my problem.. Thanks in advance..

    That is not my problem . i already read it char by char.. i am getting complete line..But this process is taking to much time..So thats why i directly wanna read complete line or word to save time..

  • J2ME pre-requisites, URGENT!!!

    Hi people!!!
    How are you doing? Are you ok? I wanna know what do I need to know and what software do I need to have to start learning J2ME?
    Do I get to learn it with the JBuilder 7? And do I need to know JDBC, JSP, XML and Servlet programming?
    Because I wanna start programming for these things...
    Thanx...

    Hi!
    You only need to learn the java language. Then you download the J2ME toolkit from java.sun.com
    It includes some documentation and examples to start you with. You can also go to the official homepage of the J2ME. I also recommend downloading the sun one studio me for your IDE.

  • J2ME And JSP...

    Hi there Experts...
    i am new to J2ME and i need to connect my MIDP forms to jsp..
    i dont have any idea about that. Is it possible to pass values those been selected by an user from mobile device to the jsp and again answer from jsp to he mobile device..?
    Please help me out...
    Agam

    Hi,
    Here is the example of HttpConnection Class
    HttpConnection conn = (HttpConnection)Connector.open("http://www.yourdomain.com/mypage.jsp");
    InputStream is = new InputStream(conn.openInputStream());and now you can read is as you want and extract data from it.
    is can also contain XML data and then you can use XML parsers to extract data.
    Now it you wanna send any parameter using querystring then you should write like this
    HttpConnection conn = (HttpConnection)Connector.open("http://www.yourdomain.com/mypage.jsp?fname=rohan&lname=chandane");
    InputStream is = new InputStream(conn.openInputStream());Regards,
    Rohan Chandane

  • Problems with j2me gaming

    Hi guys. I need you to help me with this problem. I'm developing a j2me game using netbeans and the gamebuilder component. So everything it's ok, but the problems come when I charge the application into my cellphone. The first problem is on the collidesWith() method. In spite of the hero sprite and the enemy sprite are saperated from many pixels, the CollidesWith method fires by itself. As an example, the hero sprite is at the top of the screen and the enemy sprite is at the bottom of the screen, when the level begins, the collidesWith() method fires so the application show the game over screen as if the enemy touched the hero, which is not true.
    The second problem is that when I try to stop the threads. For example if the hero sprite dies, all of the threads which drives the enemies should stop, so the player needs to restart the level for try again the level. The problem is that when the levels restarts, some of the enemies doesn't move.
    Any of you know what the problem could be it?? I'll appreciate your quick answers. Thanks in advance.

    HI Friend:
    You install jdk1.5.try it!

  • Transfer data from linux pc to cellphone & give access to j2me program

    i am doing a project wherein i need to transfer some data from a linux based pc to sony ericsson p800 cellphone connected to the pc. now the problem is the pc suite of p800 works only on windows. so right now i recompiling the kernel to incorporate irda / bluetooth support and then transfer data using bluetooth. now my question is will the data transferred via bluetooth get stored in the rms and will it be accessible to j2me aplications? actually initially we were planning to use socket programming (personal java) to transfer data between pc and cellphone . can j2me programs access files on the cellphone? again somebody told me
    RMS is created for every JAR and SIS file...ie the cell allots a particular area for each jar application which another application cannot access, so personal java programs are converted into SIS files...so using personal java is not of any help coz if the data is transferred, it wont be accessible to j2me application i.e. all midlets that wanna access a RMS should be packaged into the same JAR file
    also does anyone know an easier method of transferring data from the linux pc to the cell rather than recompiling the kernel? again most importantly the data transferred should be accessible to j2me applications.

    Iphone requires itunes.
    As far as I know itunes does not run on Linux Ubuntu.

  • How to install J2ME WTK on Linux Mandrake 10.1?

    Hello!
    I try to install J2ME WTK on to my Linux Mandrake 10.1but it does not work for me. Below is the output after the License agreement.
    So if you got any ideas please let me know.
    Best regards
    Fredrik
    Do you agree to the above license terms? [yes or no] yes
    j2me_wireless_toolkit-2_2-linux-i386.bin: line 287: cd: /home/fredrik/downloads/Java: No such file or directory
    Testing /usr/java/jdk1.5.0_01/bin/java...
    A suitable Java interpreter was detected
    0) Use /usr/java/jdk1.5.0_01/bin/
    1) Specify a path to a Java interpreter directory.
    2) Cancel this installation.
    Select a choice [0-2]: 1
    This application requires Java 2 SDK, Standard Edition (1.4 or later). Enter a path to a Java 2 SDK (For example: /user/jdk1.4/bin). You can type "exit" to cancel installation.
    Enter a path to the Java 2 SDK: /usr/java/jdk1.5.0_01/bin
    /usr/java/jdk1.5.0_01/bin/java
    Testing /usr/java/jdk1.5.0_01/bin/java...
    Please enter a directory into which you would like to install the J2me Wireless Toolkit, 2.2.
    [ default is /home/fredrik/downloads/Java Micro edition/WTK2.2 ]:/usr/java
    j2me_wireless_toolkit-2_2-linux-i386.bin: line 224: cd: /home/fredrik/downloads/Java: No such file or directory
    Installation directory is /usr/java.
    Setup has enough information to start copying the program files.
    Current Settings:
    Destination Directory
    /usr/java/
    JVM Folder
    /usr/java/jdk1.5.0_01/bin/
    Please choose one of the following options:
    0) Begin copying files if you are satisfied with the settings .
    1) Cancel the installation.
    Select a choice [0-1]: 0
    Failed to extract files. Installation will stop now.
    Please try to install J2ME Wireless Toolkit again, or contact [email protected] for assistance.
    [root@Stationary Java Micro edition]#

    Don't add the /bin part of the path. The WTK only wants to parent directory for you J2SDK installation, which would be /usr/java/jdk1.5.0_01. Though I don't know that using J2SDK 1.5 is the best route to take. I would recommend going with the latest 1.4 until they update the WTK.

Maybe you are looking for

  • Maximum size for JAR files on Nokia 3120 Classic

    I am trying to download and install a java app for a Nokia 3120 classic, but when installing I get an error message telling me that the file is too big at 5.7mb. I can't find the maximum size of .jar files for this phone anywhere. Can anyone let me k

  • Filter DTP rutine

    Hi, I am trying the automate the loads of a infocube, we load each day data of (day - 1) but  is very common the reprocess of data (delete one o more days and load again) to do that I am thinking delete at the process chain the request preload. To do

  • Azure Site Recovery 100GB limit

    When will support for greter than 100gb drives be rolled out? And is that size limit include the OS drive?

  • Windows live mail will only send and receive on my...

    Hi there, windows live mail will only send and receive on my sub account but not my default account Regards Mike, Solved! Go to Solution.

  • MacBook 17" C2D is.....PERFECT

    just got a 17" MBP C2D, used the migration assistant to transfer everything from my PowerBook 1.67 2 Gs of RAM. and the transfer was a success. everyhting works just fine, even Office. FCP flies compared to PB 1.67, WIFI is perfect, better reception