J2ME Beginner

I am new to MIDlets and J2me and am using it to complete a university project. I have successfully built simple midlets and deployed them to my nokia mobile phone, which can connect to my university server, and view a jsp page which displays data from a database.
I still am unable to pass parameters to the jsp page, and am unsure if sessions are possible/worthwhile. Basically, i want to build a login page.
Can anyone point me in the right direction?
Even if its just creating at text field to pass a parameter to a jsp page? (or servlet)
Failing this does anyone know any good tutorials for a beginner?
Many thanks,
Dave.

I don't know what about your IDE, but when i downloaded NetBeans, I have to go get the update before I can pick MIdlet. Hope this help. I have really not have a great time here asking people for help, my other post is not getting any reply but my own! :-( Well I am just trying to tell you what i know, but I am also new to this so may be u can help me out.

Similar Messages

  • J2ME beginner needs help ???

    Hello,
    I am a beginner on J2ME.
    In the WTK21, I just see those compiled file in .jad format. How can I deploy it to the PalmOS or PocketPC ?
    Do I need to install any Java VM in that ?? Where I can find this ???
    Best regards,
    Eric

    Sad to say that the palm pilot and pocket pc has its own profile as well just like the Sun's J2ME Wireless Toolkit which is using the MIDP profile. Therefore, to simply transfer the jar and jad file into your palm or pocket pc won't work at all.
    Yes, you can download KVM for your Palm and Pocket PC however, the KVM is just another VM that interprets java. For the Palm, I used KJava the last time round. If you have the source codes, you will noticed that the KJava builds on CLDC then the KJava Profile for the palm pilot.
    Thus the GUI part, you have to use the Palm/Pocket PC GUI API. While the application logic stays. That means, you have to get the targeted emulator to run and test your program once again.
    In additon, you would want your application to be in full-screen mode on the targeted device rather than a small window,especailly for games, you will want the graphics to be displayed at its optimum resolution. , That is why programmers out there like to separate presentation from the data so that if the presentation changes, you will only have to touch the presentation codes.
    The other better solution is to have another VM that runs Palm, MIDP and Win CE Profile without any big hassle.. Take a look http://www.esmertec.com/solutions/

  • J2ME maps gps gprs etc

    Hi,
    Im asking for help regarding the following issues, basically i need to program onto my smartphone an application that does primarily these following things,
    1. show gps position of where user is on a map* and mark it with a small image that moves as the postition is changed, also at certain positions on the map i would like to add small markers(represented by images) with codes (like X.XX.XXX.X) above it.
    2. send through gprs all details such as longitude latitude of position, and marker data to a server ( i think i can get this part working, simple http connection sending data as a string?).
    * the map most probably be retrieved from a server, i.e google maps, google earth or a server i set up to send a certain sized image back across to the phone depending on there gps location.
    Any help will be much appreciated!
    Thanks
    J2ME beginner
    p.s - hope this all makes sense!

    Hi,
    If you want to get all this information through j2me then you have to parse the NMEA sentences. So you have to write a code about parsing those sentences and then you will get that information. And only then will you be able to send that information to the server.
    For getting information through GPS first of all make sure that handset has an internal GPS support or make a connection with BT GPS.
    I dont remember the exact link where I found this information but if you search a bit more you will able to get this information. If I found that link againg I will send it to you.
    Anyways I did tried on Nokia handset but was not successful. So you also try out and if you are successful then let me know too.
    Best Of luck
    Sunil

  • SVG tiny GUI and touchscreen

    Hi folks,
    short question from a J2ME beginner. If i use a SVG tiny GUI for my J2ME application and i use a menu with some buttons, will it be possible to "click" on the buttons on a device with a touchscreen?
    Or do i have to capture the event and look if it was inside the area of my button? In this case, i would use canvas, because there are more devices which support this than devices which support JSR 266.
    Thank you for you answer!

    I suppose you can't fix it. Different file formats support different kinds of graphics.

  • Beginner's Tutorial: J2ME

    I want to learn J2ME. And there are a lot of tutorials out there, so I'm kinda confuse which to pick first.
    Can you guys recommend a good tutorial for beginners? Thanks!

    DW4 is a real relic - released way back in 2000.  I hope you mean DW CS4 which uses modern web standards.
    Dreamweaver (whichever version you use) is going to be much easier to learn if you understand HTML & CSS basics first.   Don't put the cart before the horse.
    Start here:
    http://w3schools.com/
    Learn CSS positioning in 10 Steps
    http://www.barelyfitz.com/screencast/html-training/css/positioning/
    How to Develop with CSS?
    http://phrogz.net/css/HowToDevelopWithCSS.html
    Beginner CSS Templates ~
    http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Beginner to j2me

    hi,
    i am beginner to j2me programming.My problem is i have written a small programme using J2me API and able to successfully compileit, but i am unable to preverify it, it is giving me classNotfound exception,
    Thanking you in advance,
    Regds,
    Kavitha Jayanna

    Did you add the "-bootclasspath" options when you complie. you should add your j2me path behind it,
    such as"-bootclasspath c:\midp1.03fca\classes"
    Or when you preverify ,did you add the "-classpath"
    option.such as "-classpath c:\midp1.03fca\classes;."

  • 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

  • Beginner in J2me

    Hi all,
    I'm new to this J2ME programming. Can anyone explain to me how to use the new Command() function.
    Can anyone please explain to me what each parameter means for, especially the "2".
    new Command("Select", Command.OK, 2).
    In addition, I'd appreciate if someone can direct me to a J2ME manual that consists of the method explainations (like MSDN).
    I'm using Eclipse to program if this means anything.
    Thanks.

    Command(String label, int commandType, int priority)the 2 stands for the priority. 0 means high priority (important), the lower the priority is, the longer is the navigation way, when multiple commands can be selected on one soft button. Its just a hint for the implementation of the phones, where to place the command.
    look at http://java.sun.com/j2me/ there you can find anything regarding the J2ME development. The Wireless Toolkit includes a complete javadoc of MIDP and CLDC and should be this, what you are looking for. I dont know, whether the javadoc can be downloaded seperately. Maybe you should try the links to MIDP or CLDC.
    hth
    Kay

  • Beginner in J2me-Need some tips

    I am in a project that requires developing a java application on symbian OS based mobiles.
    Can someone tell me which software wud be the best to develop upon?Also it should be for free download
    1. Metrowerks CodeWarrior Wireless Studio 7
    2. jVise from S5 Systems
    3.JBuilder 7 Enterprise with MobileSet 3
    4.Sun J2ME Wireless ToolKit
    I am a novice in developing and i just have knowledge of core java

    So what you are saying is that its impossible in
    java,J2EE,J2Me????J2ee stuff does not run on j2me devices. You are bound to the j2me api stuff.
    Okay c++ is excellent, i am fine with it, then how do
    i go about doing this java project.My project leader
    is a project manager of that company, and hes into
    programming for years, so i don't think he wud give
    an impossible task. Well, saidly, in on this topic he is wrong. Look at the j2me api docs and see for yourself: there is no way you can do this with java on a mobile device.
    So could you find out some info for me.I came to this
    forum for some help as i am tired of serching sites
    .I did not get fruitful results as i have been trying
    for days together.I can imagine that, since what you want to do is fairly uncommon and unusiual.
    I can't give you more info than to look into the C++/symbian world :( Bad thing is that you lose your large device base.

  • HOW TO START OFF WITH J2ME

    Hi ,
    i'am a beginner.i'am in the initial stages of my carrer in mobile industry.
    i'am well versed in java.
    i want to learn J2ME.i'am unable to know the starting point.
    Anyone, please guide me how to start off with learning J2ME.
    desperately waiting for a reply..
    Thanx,

    this forum is for web services, but not j2me. several suggestions:
    1. go to j2me forum
    2. download a j2me wireless toolkit
    3. read articles about j2me on this site

  • No Image in my cell but there's an image in J2ME wireless toolkit

    Hi all,
    I'm really lost here. I coded my java code and run it in J2ME wireless toolkit and the image is there, I put the image on the res folder and the image file format is .PNG, its working in the default color phone. However whe send it to my cellphone, sending the .jar file, and after installation, as I run the program, I cant see the image, all UI is ok but not the image. Thanks a lot
    Here's the code:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloWorld extends MIDlet implements CommandListener, ItemStateListener
    private Form frm;
    private Display display;
    private TextField txtName;
    private TextField txtAge;
    String[] genderArray = {"Male", "Female"};
    private ChoiceGroup gender;
    String[] statusArray = {"Single", "Married", "Widow"};
    private ChoiceGroup status;
    private Command cmdExit;
    public HelloWorld( )
         display = Display.getDisplay(this);
         frm = new Form("Hello World");
         txtName = new TextField("Name: ","",40,TextField.ANY);
         txtAge = new TextField("Age: ","",2,TextField.NUMERIC);
         Image[] imageArray2 = null;
         Image[] imageArray3 = null;
         try {
              Image icon = Image.createImage("/icon.png");
              Image img = Image.createImage("/myPic.png");
              imageArray2 = new Image[] {icon, icon};          
              imageArray3 = new Image[] {icon, icon, icon};
         frm.append(new ImageItem(null, img, ImageItem.LAYOUT_CENTER,null));     
         } catch(java.io.IOException err)
              // Found an error
         gender = new ChoiceGroup("Gender: ",ChoiceGroup.EXCLUSIVE,genderArray,imageArray2);
         status = new ChoiceGroup("Status: ",ChoiceGroup.POPUP,statusArray,imageArray3);
         cmdExit = new Command("Exit",Command.EXIT,1);
         frm.addCommand(cmdExit);
         frm.append(txtName);
         frm.append(txtAge);
         frm.append(gender);
         frm.append(status);
    public void startApp( )
         display.setCurrent(frm);
    public void pauseApp( )
    public void destroyApp(boolean unconditional)
    public void commandAction(Command c, Displayable s)
    if ( c == cmdExit )
         destroyApp(false);
         notifyDestroyed( );
    public void itemStateChanged(Item item)
    Thanks.

    HI Phoenix_Mj
    I'm a beginner in J2ME world and it might happen that I'm be missing some impt step from coding to transferring.
    Do I have to configure anything?
    Im I right by saying, only the .jar file is then transmitted to the device?
    Lastly, where should I put my images? what folder to be specific?
    I can't run the application correctly even trying to run it over the OTA....
    No images is being displayed...
    Please help guys.
    By the way thanks, Phoenix_Mj
    God Bless to all

  • Develop J2ME application for Pocket PC

    Hi everyone,
    I'm a beginner in J2ME, I would like to ask what should I use to develop app for PPC.
    As I know, PersonalJava is good for it, but it already end of life, then is it good now? And I've heard Kjava & Kawt are also for PPC since I'm looking for a package which included java.awt & event. How about them?
    Thank you very much!
    Gary

    Perhaps this will be useful, http://www.vikdavid.com/mobile/
    Viru Doshi

  • Getting cell-id and location using j2me/symbian

    Hello frens
    i m beginner to j2me and task is
    get cell id location of mobile terminal by sending a sms to that mobile terminal ,
    How to achieve this

    JSR-179 points you to how to do this in J2ME . The problem is that no one has implemented the Location API on their fones as yet. Ok apart from Nokia and then only for some of their high end fones. Any one been able to create a JNI wrapper and get the details from handset? If you have you can save me hours of pain! :-)

  • Check the level of phone battery + J2ME

    i'm leaving in a developping country , i need to develop a midlet that will send an sms to somebody when the courant goes off , the midlet will be installed on a phone that will be permanently connected to a power outlet
    My question is is it possible in J2ME to do such a thing( detect that the battery is not charging meaning that the courant went off and of course detect the contrary)
    I'm a beginner in this stuff and I'm using netbeans 6.1 IDE

    Battery level detection isn't a part of the standard API, but some manufacturers do have a proprietary API which facilitates this. Check out the developer area of the manufacturers' websites.
    But AFAIK this will only give you the battery level, not whether it's charging or not.
    db

  • What is the best developer studio for beginner?

    I am student at computer science. I want to learn mobile technologies . I heard too many studio name .Which is the best for beginner and where I can downlaod it . Thank you so much.

    netBeans 4.1 + Mobility Pack from http://www.netbeans.info/downloads/download.php?type=4.1. You'll get all you need for both J2ME and J2SE development.
    Peter

Maybe you are looking for

  • How can i unlock the iphone4 that i bougth it from south korea

    How can i unlock the country lock of my iphone4 that i bought from South Korea

  • Embedding Google Earth in frame

    i am making a a java application using swings i want to embed google earth in it can nebody help me how to proceed

  • Still trying to understand "reflection"

    I came across the program below and can't seem to get anything to "pass". public class Test {     public static void main(String[] args) {         int passed = 0;         int failed = 0;         for (String className : args) {             try {      

  • Error in Assets creation in AS01

    HI Expert, I'm facing error while trying to create Assets account under AS01 - strange part is i have created building account in same heading but while trying for mahinery and furniture getting 2 differene errors 1)Number range 1 is not in the numbe

  • Downloading a File with a Unicode File-name

    hello! I have a program under Tomcat this program has a JSP file with Links on different files that can be downloaded by the user on click to a certain link, a pop-up for save-as dialog will appear. the unicode file-name appears correctly on the save