J2ME and MIDP beginner questions

Can anyone recommend editor/IDE, toolkit etc. for coding, building and testing MIDP2.0 apps/games?
Until now I've coded a game using J2SE. I used Forte 3.0 for coding and compiling, and IE5.5 for testing.
Now I want to code mobile games/apps using J2ME and MIDP 2.0. What software do I need? I downloaded Sun ONE studio 4 ME and wireless toolkit 2.0, but are kind of struggeling with it :)
Regards
Hallvard

Ok, I found out that the toolkit compiled the .java files and could bulid the .jar and .jad files, and then test the MIDLet on the emulator.
But what about a good editor/IDE for MIDLets? In Sun ONE studio ME i finally managed to create a HelloWorld Midlet (with new project wizard), and build and run it in the toolkit.
I also heard that Borland JBuilder Mobile Edition was a nice IDE for J2ME/MIDLets.
Hallvard

Similar Messages

  • A J2ME and MIDP 2 question

    2 Questions
    1. If I have a sprite on a layer but the layer manager is only showing a part of the layer and the sprite is not on that part of the screen are any resources being taken up by the sprite? If so what would be a good way to manage sprites (in this case enemies) that have a predetermined position on the much larger layer that need to be added to the layer when the screen is visible?
    2. What is the largest size I can use for a image that I am going to be using as my game area?

    1: yes, the sprite is using resources. it uses space from the offscreen buffer.
    i suppose that you are a game buff. there are two types of having bbiigg maps. one is zelda type (gbc). and the other is pokemon type(gbc). in zelda type, each screen is one layer, and you move from screen to screen by moving from layer to layer, with a 2d matrix of layers coming together to make a map.
    in pokemon type, there is one bbbbbbbbbbiiiiiiiiiigggggggggg layer through which you scroll smoothly. this is tougher. best is to have a condition for each sprite like isVisible. if it is false, suspend all animations for that sprite. if it is on the screen, start it's animation.
    You can divide this into smaller layers by using tricks like 'doors' through which you pass through to go to other layers. never have a layer too big because it will kill performance.
    for an image the largest size can be indeterminate, as long as you have the space for it on the heap. also only a part of it as large as the screen size can be displayed at once.
    hope this helps
    Arjun

  • JAR packages with J2ME and MIDP devices

    Some devices that use J2ME have limitted the size of java applications.
    Here's an example, device has 120 Kb of memory, but max. size of downloadable app is 30 Kb. Is it possible to make JAR packages like in J2SE so that the the application (the classes of the app) are devided to two or more JARs and get it work. Since this is an easy workaround this limit.
    In J2SE grouping app into many JARs is possible if I am right.. JAR-docs propably quides my way... I am just wondering if this is possible J2ME
    P_TR

    you may use the special .jar tool to do it.
    www.pivotonic.com
    JavaJar1.1
    you can add files to .jar file like winzip.
    and you can edit and check correct the manifest file in JavaJar editor.
    why not try it?

  • J2me wireless toolkit and MIDP,CLDC

    Hi,
    does the j2me wireless toolkit ship the cldc and midp with it ?

    why email, thats a forum because there are more people interested in problems and their solution than you.
    The 2.2beta also ships with the CLDC 1.1 and MIDP 2.0. Its a must because without it, you wouldnt be able to execute anything. And you cant put the JVM, MIDP and CLDC on your phone. The only thing you need is your application. The rest is implemented in hardware (or firmware of the phone). If not, theres no way to ''manually'' put in there (this includes upgrading).
    hth
    Kay

  • Beginner question regarding 32-bit mixing and mixdown workflow

    Hello
    I have a beginner question regarding 32-bit mixing and mixdown.
    If I edit some 16Bit, 44.1kHz Stereo WAV Files and put them into multi-track view to do crossfades, how should I do the mixdown?
    Audition shows me in multi-track view, that it is doing 32-Bit mixing.
    Can I just mixdown to 16Bit, 44.1kHz Stereo without any dithering (as the files are 16Bit, 44.1kHz Stereo to begin with), or will I lose quality that way?
    I will be performing a normalization to 96% to the mixdown and then split to tracks in Audition, as in the end I want to to have an audio CD.
    I guess I could mixdown to 32Bit, then normalize and in the end save back to 16Bit, 44.1kHz Stereo WAV (with dithering, I suppose?), but I want to avoid any unnecessary converting steps.
    Greetings

    Any time you do any processing on a 16bit file in 16 bit only it will degrade the audio slightly due to rounding of the calculations. Working in 32 bit floating point (Audition's default) takes account of all bits generated due to processing.
    So it is always best to work in 32 bit, even if your originals were 16, all the way through until the last stage of saving the files for CD burning. Any losses due to conversion will be insignificant against those due to working 16 bit.

  • Bluetooth connection not working on US Nokia phones from J2ME Midlet (MIDP

    Hi All,
    We are developing a J2ME midlet (MIDP 2.0 ,CLDC 1.1)which makes bluetooth connection to other devices.The bluetooth
    connection is working perfectly on indian nokia phones with Airtel as carrier.But when we deploy the same midlet on Nokia E71
    US phone with carrier as AT&T ,the bluetooth connection is not working.The sample code is as follows:
    public void run(){
    try{
    StreamConnection connection = (StreamConnection)Connector.open(btConnectionURL);
    // open an input stream to get some data
    InputStream in = connection.openInputStream();
    byte[] serialData;
    readData = true;
    while(readData == true){
    int lengthavai=0;
    lengthavai = in.available();
    if(lengthavai > 0){
    serialData = new byte[lengthavai];
    int length = in.read(serialData);
    System.out.println("data read: " + new String(serialData));
    dataViewForm.append(new String(serialData));
    in.close();
    connection.close();
    }catch(IOException ioe){
    ioe.printStackTrace();
    when we try to connect on US Phones],the execution hangs at the following line of code:
    StreamConnection connection = (StreamConnection)Connector.open(btConnectionURL);
    No exception is caught.
    Our midlet is not signed.
    In the Forums it is said that the problem is with the unsigned midlet.AS some of the US carriers block the secure API usage
    on Unsigned midlet.
    But our question is, if we buy a code signing certificate from Verisign or Thawte and sign the midlet, will this problem be solved.
    Any other alternative solutions for this ???
    Immediate help will be appreciated.
    Thanks,
    Yash

    You might want to read this before buying a certificate:
    http://javablog.co.uk/2007/08/09/how-midlet-signing-is-killing-j2me/
    It's not my blog, but I pretty much agree with what it says. Unfortunately the network operators can control the access 3rd party trusted certificates have, so even if you sign with Verisign for example, the signed midlet may not have any more privileges than an unsigned midlet, depending on network. They do this so that only midlets signed with one of their own certificates have unrestricted privileges forcing anyone who wants a useful application to buy it from the network instead of downloading an equivalent freeware version from Getjar for example. Some networks are worse than others, so signing your midlet will allow it to work on more phones than an unsigned midlet. I think Verisign have some info on AT&T on their website.
    The whole MIDP specification for security is a joke, IMHO. I don't mind unsigned midlets flashing up a warning once during an application. Writing 20 files, for example, will give 40 security warnings for reading writing data which is ridiculous, as the user obviously either trusts the app or he doesn't. No one runs an app that they only sometimes trust.
    As far as I know the only mobile manufacturer so far to see sense is Sony Ericsson. All of their new phones from Java platform 7 onwards allow unsigned applications access to the file system, bluetooth etc with just one warning when the applications starts.
    Andy

  • J2ME CLDC/MIDP emulator for Compaq iPAQ

    I would like to run J2ME CLDC with MIDP on my Compaq iPAQ 3650. I am NOT interested in PersonalJava at this time. I have two questions:
    1. Has anyone tried to put the J2ME Wireless Toolkit emulator on iPAQ, with or without Swing? J2ME WTK currently requires Swing, but it seems like that AWT may be used exclusively instead with some slight modifications.
    2. Does anyone know if there is an applet/AWT version of a J2ME CLDC/MIDP emulator that I can use for demos?
    Thanks.

    You can use the PalmOS emulator for winCE and install MIDP4PALM...

  • J2ME and java.nio

    I'm not sure which forum this should go in so applogies if I got it wrong.
    I would like to use the java.nio package from JDK1.4 with the J2ME. Is this possible in any way?
    cheers
    Andrew

    I'm not sure which forum this should go in so
    applogies if I got it wrong.
    I would like to use the java.nio package from JDK1.4
    with the J2ME. Is this possible in any way?this topic should be post at
    CLDC and MIDP
    http://forum.java.sun.com/forum.jsp?forum=76
    or
    K Virtual Machine (KVM)
    http://forum.java.sun.com/forum.jsp?forum=50
    CLDC 1.0 and MIDP 1.0 doesn't include java.nio
    please go to
    http://java.sun.com/j2me/docs/
    two documents will be useful
    CLDC Specification, V1.0
    MIDP 1.0 Specification, Final (JSR 37)

  • 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

  • Beginner Question

    Hello all, hopefully I have posted this to the correct LiveCycle board!
    I'm new to Acrobat and LiveCycle in general. I'm working out of windows LiveCycle Designer 8.x  and my question is as follows....
    I'm working off of the "Quote" Form Template and what I am looking for is a way to make the rows of the Table expand as needed.  I will be converting this Template into a "Purchase Order" form, and there will be many occassions where I will need to increase the table rows - perhaps onto a second or even third page - due to the volume of different items I will be seeking prices on at a given time.
    Long story short I would like to take this "QUOTE" form template and make it such that if needed, I can expand the table size one row at a time, pushing the content beneath (Comments, subtotal, etc) onto the next page....
    Hoping I have explained my query well enough,  Could anyone provide me a solution or point me in the correct direction?
    Many thanks!

    As a followup, so as not to clog the board with numerous threads I have another beginner question
    For the sake of hypotheticals I am creating a dynamic PDF form.  This pdf is a Purchase Order Form, with a table in the Body that will expand/contract as the form user needs.  (EXA-  Default table size is 5 items, however user is creating an order for 12 items, he/she can increase the table rows to desired capactiy.) It will be a very simple layout. All data for the form will come from manual entry, no XML data binding going on.
    My new question is as follows:    Is there a way I can have this user's Adobe reader or Adobe acrobat software remember previous data entries, so that if 4 weeks after ordering widget X he/she needs to place another order for widget X, the software will autofill the table as he/she types into the table cell?
    This would be similar to how Excel will start to autofill if it recognizes a previously entered value from some other cell in the worksheet (workbook?)
    EXA-
    [NAME]   [MODEL]   [QTY]   [PRICE]
    Widget           A            433        $30.00
    Would it be possible for the software to notice that I'm typing the word "widget" somewhere after typing "wid" ???
    Many thanks for any and all followups, I'm a teenager trying to help out in my father's small business. They are in the darkages here and I'm doing my best to self teach.
    Thanks.

  • Clip Mask and MovieClip pivot questions

    Two more beginner questions:
    1) What's the easiest way to invert a clipping mask for a
    MovieClip in ActionScript? I tried using a ColorTransformMatrix to
    invert the alpha of the mask MovieClip, but it didn't work (looks
    like the clip mask simply does nothing where there are no filled
    shapes). I would like to add a graphic everywhere EXCEPT within the
    area of an animated MovieClip, and due to various requirements I
    cannot simply place it behind that MovieClip.
    2) Is there a way to set the pivot of a MovieClip in relation
    to the animated drawings/frames? It looks like the "origin" of a
    movieclip is the lower left-most corner of all the bounding boxes
    of all the frames of animation in my MovieClip. So if I set the _x
    and _y of a MovieClip in ActionScript to 150,150 it places the
    lowerleft-hand corner there instead of what I would like to be
    logical center of the MovieClip (say, center of a wheelbase of a
    car, or center of the feet of a person, or center of mass of a
    rock). I am fine with dialing in an offset, but just wondering if
    there is a cleaner way to do it (esp. if I happen to add more
    animation frames or replace drawings and the bounding box changes
    size).
    Thanks,
    Ken

    Ah, I figured everything out.
    1) Actually, the ColorTransformMatrix does work, but I didn't
    realize that alpha was 0-255, not 0-1 (you'd think after being
    bitten by MovieClip scales being 100 = 100% instead of 1 = 100%,
    I'd have guessed, but...). So a ColorTransformMatrix of
    (1 0 0 0 0)
    (0 1 0 0 0)
    (0 0 1 0 0)
    (0 0 0 -1 255)
    applied to the mask will successfully invert it. Nice.
    2) Apparently I had previously messed up grabbing all the
    images and dragging them - I had forgotten to turn onion skinning
    to "onion all" so that I could actually see everything (all my
    images are all on top of each other so it wasn't obvious I didn't
    have everything visible). I had been selecting all the frames and
    dragging the images around in relation to the registration point,
    but only the last 3 frames were actually moving, and they happened
    to be a part of the animation I didn't bother triggering while
    testing. Oops.
    Thanks much for your help.
    Ken

  • Beginner question: Can I apply one formula to all cells in a column?

    Hi,
    I'm new to spreadsheets, so apologies for asking what is probably a very simple question.
    I want to apply a formula that divides the values in one column (W) by values in another (AX) for a table containing 3000 rows, and outputs the result for each row into the appropriate cell in the new column I've created.
    Numbers 09 'help' hasn't helped to this point.
    Thanks in advance for any assistance.

    GeoBrett wrote:
    Numbers 09 'help' hasn't helped to this point.
    Besides Numbers '09 Help there are two other useful resources available in the Help menu: the Numbers '09 User Guide and iWork Formulas and Functions Help.
    For "Beginner questions," my first choice would be the User Guide. For the specific question you asked, a quick scan of the chapter on "Using Formulas and Functions" (pp 83-96) will provide some useful information. Start in the neighborhood of page 93.
    Regards,
    Barry

  • J2me and mp3 fiiles

    hello, i had trouble with streaming mp3 files from wirelesstolkit2.2 aplication.
    my question, is j2me with MIDP 2.0 support mp3 file streaming?
    thanks,
    mdani

    Hi, I have also encountered same kind of problem. i tried with simple url like http://localhost/test/200.mp3. It did not work in my application. so i have used the same url in the enter url option of the demo program. Even this did not work. Can anyone please let me know, how to play mp3 files.
    I had used tomcat to serve the requested operation. if i enter the above url in browser then its opening, but not in MIDP application.
    I got the following exception.
    javax.microedition.media.MediaException: Player cannot be created for http://localhost/test/200.mp3.
    Please help me out.
    mail id: [email protected]
    thanks in advance
    pavan.

  • Beginner question - how to efficiently check if a photo is part of the selection

    Dear all,
    Sorry for this beginner question, however I don't know how to solve it and I'm sure that there is a quick and easy answer to this:
    My target is to get all the "heads of stack" (photos with Position 1 in stacks) of the selection ("photos" below).
    for i, photo in ipairs( photos ) do
      local photoName = photo:getFormattedMetadata('fileName')
       if photo:getRawMetadata( 'isInStackInFolder' ) then
       --Photo is in a stack
            local photoHeadOfStack = photo:getRawMetadata('topOfStackInFolderContainingPhoto')
            local stackPos = photo:getRawMetadata( 'stackPositionInFolder' ) -- get the position in the stack
            local photoHeadName = photoHeadOfStack:getFormattedMetadata('fileName')
            app:logVerbose("Photo nb ^1, name ^2 is in a stack with the position ^3", i, photoName, stackPos)
            if stackPos == 1 then
            -- photo is master of the stack
                 stackTop[#stackTop+1]=photo
                 app:logVerbose("Photo ^1 is top of the stack ^2", photoName, #stackTop)
                 -- check if couple if correct
            elseif photos.photoHeadOfStack then
                 app:logVerbose("Photo ^1 is in a stack, but not on top. Top of the stack already selected", photoName)
            else
                 stackTop[#stackTop+1]=photoHeadOfStack
                 app:logVerbose("Photo ^1 is in a stack, but not on top. Top of the stack ^2 - ^3 ", photoName, #stackTop, photoHeadName)
            end
      end
    end
    In the if structure in the middle checking the Position in the stack, if the Position is not 1, I would like to check if the photo heading the stack ('photoHeadOfStack') is part of 'photos'. I tried 'elseif photos.photoHeadOfStack then' and 'elseif photos[photoHeadOfStack] then' but it doesn't work ->this elseif is never true even if 'photoHeadOfStack' is part of 'photos'.
    Is there anyway to have this check done without checking "manually" photos ?(via for example a for Loop)
    I'm sure that Lua proposes this, but I don't know how...
    I thank you for your Support!

        --[[ This code creates "stackTops", an array of LrPhotos that are the
        tops of all the stacks containing photos in the array
        "photos". ]]
    stackTopSet = {}
    for _, photo in ipairs (photos) do
        local stackTop = photo:getRawMetadata ("topOfStackInFolderContainingPhoto")
        if stackTop ~= nil then stackTopSet [stackTop] = true end
        end
    stackTops = {}
    for photo, _ in pairs (stackTopSet) do table.insert (stackTops, photo) end

  • Beginner Question: SA520 Admin access through WAN port

    Dear all,
    I've a beginner question regarding my brand new SA520: How can I configure the box so that I'm able to access the admin GUI not only through the LAN ports but also from the WAN ports?
    I tried already to allow inbound traffic to the firewall's internal IP address (not sure if done right, so) and granted the admin user access profile from WAN and LAN: I can access the box from the LAN but not from the WAN. Any ideas?
    Thanks,
    Eric
    PS: Yupp, I know that it's not a good idea to expose a FW admin GUI to the WAN - but this is only a lab environment

    Go to Administration -> Users.
    click on the 'Edit User Policies' 'Login' button.  It's there you can enable WAN access.

Maybe you are looking for