Debuggin J2ME application

Hellos everybody...
I'm working with Eclipse 3 and the plugin for J2ME EclipseME 0.55
I'm wana to know how can i debug a j2me application.
thank.....

In a few words, if emulator support UEI standart, then it has following options:
-Xdebug Enable runtime debugging. -Xrunjdwp must also be specified.
-Xrunjdwp:<name>=<value> Starts the JDWP debug session with various sub-options. <name> is one of the sub-option names. Appropriate values for <value> is determined by the sub-option name. -Xdebug must also be specified.
The <name> may be:
transport The transport mechanism used to communicate with the debugger. Only the mechanism for dt_socket value is currently implemented.
address The transport address for the debugger connection. This can be either 'host:port' or 'port' formats. If the 'port' format used, the host is assumed to be localhost.
server Start the debug agent as a server. The debugger must connect to the port specified.
suspend Whether or not the VM should suspend immediately after establishing a connection with the debugger. Values must be either 'y' or 'n'. The default is 'y'.
You can read this help in emulators, that supports UEI.
So using any IDE, that supports socket remote debuging, it is possible to debug midlets.
I using Ant + IDEA and sometimes Ant + Eclipse without plugins. In Eclipse you must deselect checkbox about "suspend VM" in debug options.
Here my Ant task for debugging:
     <target name="runNokia_S40_debug_Alone">
          <exec executable="C:\Nokia\Devices\Nokia_S40_DP20_SDK_1_0\bin\emulator.exe">
               <arg value="-Xdebug"/>
               <arg value="-Djava.compiler=NONE"/>
               <arg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=2342"/>
               <arg value="-Xdescriptor:${project.dir}/${project.name}.jad"/>
          </exec>
     </target>At fisrt I run the Ant task, then I run remote debug in IDE.

Similar Messages

  • How to send sms from gsm modem(AT commands) to j2me application(not inbox)

    hi
    i want to send sms from gsm modem to a j2me application, for this to happen i have to send sms to a specific port in which j2me application is running.when i m trying to send sms from modem it doesnt go to application it goes to inbox.
    is it related to udh settings if yes then how do i set port no in settings?if no what are the other ways.

    Hi Vignesh,
    Might be you can call ActiveX or DLL objects of the software installed for modem from LabVIEW, if it is unblocked.
    Have a  look on the link > http://zone.ni.com/devzone/cda/tut/p/id/2983
    CLA 2014
    CCVID 2014

  • How to get the Mobile information by using J2ME application

    hi all,
    I am lakshman.I am developing an application in j2me,I want my program compatible to all mobile devices.
    I want to know properties and the device information with the help of a j2me application.I got the information with the help of System.getProperty(String).I found some of the information like sms,videocapture,and some of the values and the variables ... in the following
    platform...null
    encoding...ISO-8859-1
    configuration...CLDC-1.0
    profile...MIDP-2.0
    locale...null
    fileconnection...1.0
    comport...null
    hostname...iwmc-07
    sms...null
    smartcard...null
    location version...null
    sip version...null
    m3gversion...null
    mms...null
    videocapture...false
    videoencoding...null
    snapshotencoding...encoding=png encoding=jpeg encoding=gif encoding=bmp
    audioencoding...null
    supaudcap...false
    suprecod...false
    supmixing...false
    mediaversion...1.1
    streamcont...null
    I want to know these are the only variables or is there are lot...
    Now my question is I want to get the information of the service provider and also the present location that the mobile was present.I think there was some method to get that ...I want to get what firmware it was using .
    Can anybody tell me that way and also the package to get the information
    thanks in advance
    lakshman

    hi all,
    I am lakshman,I found the answer for my question,By using the Location API(jsr179).It was not include in the WTK2.2.for that i have downloaded the WTK2.3 then i have implemented the location api in the application and it was working.
    And I have the following warning...
    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    I am running the application from my Emulator(by using the default color phone).I have to check that in the device.
    Can any body please give me the way to fix that,i want to test my application from my emulator is that is possible if possible ...how?.what is the procedure to implement..
    thanks in advance

  • Opening a web page through my J2ME application.

    Hi All,
    I am creating a j2me application, that has to connect to the server online and open a page on that server, and then upload a file at a particular location in that server.
    I am using Nokia 6681. I was exploring it, but since I have very less time, I am posting a query here also.
    If this is possible (opening a connection with a server - I have the IP address of the server and also the path to that page), and display that page on my cell phone from within the j2me application.
    Is this somehow related to JSR-172 (Which is not supported on Nokia 6681).
    If this is not possible this way, Is there any way I can upload that file to the server from within the application.
    Urgent help is required.
    Thanking you in anticipation
    Ashish

    Just compile and run the testVisit program as follows:
    java testVisit http://www.yahoo.com
    testVisit.java
    ==========
    import java.net.*;
    import java.io.*;
    public class testVisit {
       public static void main(String[] args) {
          try {
             URL url = new URL(args[0]);
             URLConnection connection = url.openConnection();
             connection.setRequestProperty("Referer", args[0]);
             connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0");
             BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
             String Line;
             while ((Line = in.readLine()) != null) System.out.println(Line);
             in.close();
          } catch (Throwable e) {e.printStackTrace();}
    };o)
    V.V.

  • Real J2ME applications (2)

    I am looking for real j2me applications.
    I have already posted this question at:
    http://forum.java.sun.com/wireless/thread.jsp?forum=76&thread=422879
    However, most of the replies gave examples of games or tutorial examples.
    But I was looking for j2me applications implemented by companies for their consumers, such as amazon.com.
    Amazon have a mobile app, but its implemented in WAP.
    So are there any companies which have implemenetd j2me apps.
    regards

    You could find tonns of real j2me applications if you type the following keywords to any search engine: midlet download free/buy j2me.
    Here is a real game application: www.kisember.com/test/rescuedemo.jad

  • Check if mobile phone got turned off using j2me application

    hello
    Is there any way to know if the mobile phone got turned off from my j2me application.
    this is really urgent please help me out.

    alyaitani wrote:
    hello
    Is there any way to know if the mobile phone got turned off from my j2me application.No. Why do you think you need to detect this?
    this is really urgent please help me out.[http://catb.org/~esr/faqs/smart-questions.html#urgent]
    db

  • How to Create trial version of my j2me application??

    Hey..
    could please anyone write a short note on safest way of creating a trial version of my j2me application?? like i want to limit the number of tries.. like say 25 tries..
    are there any applications that do this.. or could u suggest good coding methods.. ??
    thanks a lot!

    rakesh.pachava wrote:
    Hi,
    You can use the Record Store implementation to count the number of tries.
    But if once the app is uninstalled then the record store is also lost.
    If you want you can use the File Connection API to write to file system.
    This asks for user permissions.
    Regards,
    Rakesh pachawa.yes.. this is the method im using.. & i dont want to access the File System directly.. cause i want maximum compatibility. I don't mind re-installing the application causing the trial to be re-started.. thats fine.
    but i don't want someone to be able to crack the class files by taking out the code which checks the Record Store..
    how are j2me applications normally cracked pls??

  • Can a J2ME application download a mobile content to the handset?

    Hi, I'm a newbie here.
    I've a question about whether the J2ME application can be implemented to trigger a Http download via OTA to download a mobile content. let's say using the J2ME application, the user can actually download a MP3 by selecting the option on the application screen, from the content server to the user handset's folder.
    I know that another alternative way is to use platform request to trigger the handset's wap browser to do the downloading, however I'd like the user to do all the things with only one J2ME application.
    Please help, any information is very much appreciated.

    Hi JunJie
    I'm also new so don't expect any code snippets from me. But from what I've read both on the forums here and elsewhere --
    Yes, your midlet should be able to read in a mp3 file from a web server, the best wy to find out is just to TRY but your MIDlet will be able to access the phone's file system only if it's digitally signed. To the best of my knowledge, obtaining a digital signature would cost you at least US$ 199.
    rms has a limit of 200 kB per application, so you can't save it there either.
    One way out might be to download the file and then transfer it to a listening PC application via bluetooth.
    Don't know whether you would get an 'Out of memory' error if the mp3 is fairly large.
    Wish you luck, Darryl

  • Xml Push Parsing in J2Me applications

    Hi all,
    I would like to use Push parser in j2me application.Can u please tell me how can i use sax parser in mobile application.Because when i included "jaxp-api.jar" in mobile application,it gives an error "FactoryFinder class not found".. So please tell me how can i overcome this error or any other push parser available for J2me applications.
    Thanks
    Regards
    Sourab

    Please review this article.
    http://developers.sun.com/techtopics/mobility/midp/articles/parsingxml/
    There is a link to a push parser mid way through the article. If you search "push parser j2me" you should be able to find others.
    If you still are not able to find a push parser you could create your own. How complex is the xml you need to parse?
    I created an example called y!p! some time ago that uses a push parser to parse Yahoo's Image Search web service. (http://developer.yahoo.com/search/image/V1/imageSearch.html)
    You can download the example src code. For a more complex example you could look at w!k!. It uses a push parser to parse html wikipedia articles.
    w!k! push parser src:
    http://hostj2me.cliqcafe.com/www/forumtopicview.html?fid=58&categoryId=36&fpn=0
    w!k! src code:
    http://www.hostj2me.com/appdetails.html?id=1569

  • How to Deploy J2ME applications with data in RMS?

    Hello everyone,
    I am designing a J2ME application, a simple "Who wants to be a millionaire game". It stores questions and answers from a rms datastore. I want to to how can I deploy this application with questions and answers in the recordstore. Each time I run the emulator, the data stored previously gets deleted. Is it possible to attach the rms recordstore along with the .jar or .jad files? If so how can I do it. Please help.
    Thank you all in advance.

    Thank you Sypress.. When I install it the code works fine. But I wanted to include data with the application. I think I found a way way. I added the data in a text file and while starting the application I inserted data from the file into the recordstore.

  • Series 40 j2me Application(Please Reply me)

    Hi.
    I am Jignesh
    i am developing one series 40 j2me application. i want know will it work on all the series 40 mobile device.? i am developing that application MIDP2.0 with file connection API.!!
    Please let me know as soon as possible
    Thanx

    Well, the only way to really know if it will work is to test it on ALL series 40 phones ;)
    But, if you make sure that you keep to the java specs of the series 40 phones (I don't know if they all have MIDP 2.0), I think you can be 95% sure that it will run on all phones.

  • Getting cell info via a J2ME application

    Hi All,
    I want to get the cell info i.e. Location String of the BTS, that gets displayed on the mobile phone. Is there any method by which I can get this information in to my J2ME application.
    Regards,
    Ashish

    Just a guess, as I didn't try it yet. But I'm interested on the subject myself, and I think you need the Location API. Try googling for "j2me location api" or take a look at this:
    http://www.lbszone.com/index2.php?option=com_content&do_pdf=1&id=176

  • Can we write an J2ME application to block

    Hi
    can we write an j2me application to block
    calls from certain numbers,stored in memory of device
    if so how ?
    please help me
    regards
    Rameshwari

    No, that is not possible.

  • How to install J2ME application on Nokia 6600

    Can you help me in How to install J2ME application on Nokia 6600.Is it enough to build the application using J2ME wireless toolkit or we need any other Nokia SDK for it.

    hi, it is not very difficult. I have done it this way :
    1) i have set the following mime type in my web server (JRun 4):
    text/vnd.sun.j2me.app-descriptor for the jad extension
    application/java-archive for the jar extension
    (in Jrun 4 i added them in the mime.types file in the lib directory)
    2) i have published a wml page like this :
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.3//EN" "http://www.phone.com/dtd/wml13.dtd">
    <!-- WML file -->
    <wml>
    <card id="main" title="App Title">
    <p>
    </p>
    <p><b>
    <a title="Download App" href="http://xxx.xxx.xxx.xxx/App.jad "> Download </a>
    </b></p>
    </card>
    </wml>
    to download the jad file
    3) then my AMS has started and i could download the application, which runs successfully.
    Anyhow I had to configure 1 wap profile and 1 java profile in my M50 according to my provider configuration, and I bet you had to do so if you have not yet done it. I have successfully used a gprs configuration.
    I am in Italy an so I have the italian provider's configurations. If this may be usefull to you i may send it.
    Feel free to ask.
    Hope this helps.

  • VM Error installing J2ME Application

    i am creating a J2ME application that make a HttpConnection.
    I made a lot of tests in WTK and it worked fine, but when I tryi to deploy it to a iden phone Motorola i85s,
    and the application is being installed, occours a VM Error.
    I connected the cel phone by hyperterminal, to debug, and the following message was shown when the error appeared:
    Fatal error: Unresolvable reference encountered in class services/a
    I continued trying to resolve the problem and I perceived that the following line is the reason of the error:
    OutputStream os = c.openOutputStream();
    c is a HttpConnection object.
    When i remove this line of the code, the deploy works fine... but my application needs this line to work....
    Have anyone an idea about what could be happening?
    Thanks a lot.

    Hi,
    Check with your device manual if your device implementation supports HttpConnection.

Maybe you are looking for

  • Satellite L505D-S5983 DVD Drive no longer works

    Don't know how long ago this problem started, but whenever a cd or dvd is in the drive, the light flashes on and off. If you double click on the dvd drive in windows explorer, it takes a long time trying to read it, then says no dvd/cd in drive. Anyo

  • Error in FDM task manager

    Hi, I am trying to clear the month data using FDM batch script in HFM application. Manually I am able to RUN the script. but its failing when I am trying to schedule the script by using the FDM task manager. Please let me know is there any setting I

  • PE12 will not save photos. I get error message "cannot complete your request due to program error"

    I have tried to delete the Prefs. I have tried re-booting. I have tried uninstalling and reinstalling the software. Still the message appears. I am literally just opening a .jpg and trying to save it. I have tried Save, Save As (Overwrite) and Save A

  • HP 630 motherboard compatibility

    Hello, I have might have ton replace the motherboard on my HP 630 notebook with an Intel Celeron B810 CPu and I was wondering if boards designed for Core i3/i5 CPUs would be compatible? I haven't found any good Celeron boards i online.

  • Date selection in query : logic needed!

    Hi, we have one calendar day depending on which the query result is displayed! Now the requirement is such that when user enters one date the query has to generate the result for the multiple date ranges including the one which he has entered. exampl