Can't do JDB with J2ME on WinXP

I have the latest sdk installed on my Windows XP machine, and I've been successfully writing MIDlets for several weeks now. I've been relying on printf-style debugging, but I'm at a point where I need a real debugger to do the job, so I tried to enlist the help of jdb.
I followed the instructions on the web page
http://wireless.java.sun.com/midp/questions/jdb/
entitled "Debugging MIDlets" by Eric D. Larson, and I follow his instructions exactly. When I type the command-line he suggests:
jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=5000
I get the message:
"Cannot specify command line with connector: com.sun.jdi.SocketAttach:hostname=localhost, port=5000"
and I am therefore unable to debug my MIDlet. Any help would be greatly appreciated.
John Marco Panettiere

"Bump" means I posted to the thread to get it put higher up in the displayed topics, so it had a better chance of being seen. I think Exception13 must be away on vacation, or maybe buried at work.

Similar Messages

  • JavaMail with J2ME

    Hi,
    Can JavaMail be used with j2me?
    I've read people say it can but CLDC has no java.util.Properties class so how can I work around this?

    No, JavaMail doesn't work with the current versions of J2ME.
    An older version of JavaMail used to work with the old
    Personal Java product.

  • Where can I find a good tutorial for mobile game developement with J2ME ?

    Hi All,
    I'm completely new to J2ME programming. But I have past experience on J2SE developement. Now I would like to know that where can I find a good tutorial for mobile game developement with J2ME ?
    I'll be very greatful if I can find a useful step-by-step tutorial (eg. "The Java Tutorial" for J2SE)
    Please point me ot the direction.
    Thanks
    ZuriJAckshoT

    ibook-widgets.com    have a free tutorial book in the iBooks store.  Search for "Create your first interactive book using iBooks Author"   they also  sell widgets.
    I  dont have any connection - I  found their eBook in the store long ago  and used it to learn more about iBA.
    The best advice though, is be patient,  go back over the process step by step, I cannot  access the Help files for some reason.. but i am sure its in their.

  • The calender on my iPhone 4 with iOS 6 no longer syncs with iCal 4.0.4 on my mac OS 10.6.8. However it is syncing with my iCloud account. Can someone help me with this?

    The calender on my iPhone 4 with iOS 6 no longer syncs with iCal 4.0.4 on my mac OS 10.6.8. However it is syncing with my iCloud account. Can someone help me with this?

    FYI: It seems it was a network problem with my WinXP PC. After complete deletion and new installation of XP and iTunes my iPhone will be recognized correctly, Wifi synchronization works (mostly) fine.

  • Emulating HTTP POST for file upload with J2ME

    I have search through a lot of site and couldn't find the actual code. I try to emulate below html with J2ME.
    <form method="POST" enctype="multipart/form-data" action="Insert.asp">
    <td>File :</td><td>
    <input type="file" name="file" size="40"></td></tr>
    <td> </td><td>
    <input type="submit" value="Submit"></td></tr>
    </form>
    here is my code :
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    byte[] filecontent = file byte content ...
    try {
    c = (HttpConnection)Connector.open("http://xx.com/insert.asp");
    c.setRequestMethod(HttpConnection.POST);
    c.setRequestProperty("Content-Length", String.valueOf(cmg.length + 15));
    c.setRequestProperty("Content-type","multipart/form-data");
    os = c.openOutputStream();
    os.write("file=c:\\abc.png".getBytes());
    os.write(filecontent);
    os.flush();
    I can emulate form with text field and it work, but when it come to file upload, above code not working, I don't know what to put for the outputstream, filename ? content ? or both ? since the html only has one field that is the "file" field. The file is actually store in rms with filename abc.png, and I just put in the c:\ for the server as a dump path.

    File upload is more complicated then that... you need multi-part MIME formatting.... But I have just the code...
    http://forum.java.sun.com/thread.jspa?forumID=256&threadID=451245

  • Can I change background with Lightroom?

    Can I change background with lightroom?? Please help me. Thank u

    Hi behzad,
    to requote my message #2: Right-click the right window scrollbar (VI in edit mode) and select "properties"…
    What don't you understand of this?
    When you don't trust me you should read the LabVIEW help on this topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Security With J2ME Question

    Hello,
    I am currently developing an application allowing users to purchase tickets using J2ME, ASP (server side JavaScript) and a SQL Server database. I wanted to find out whether there is a way to make network connections to the server side secure? I am not using sockets but standard http connections�.
    Is the security possible with just http? If not is the only way to have a secure application, by using sockets? Can sockets be used with a non-java server based technology such as ASP? Also what security will I be able to implement on the server side (currently using IIS to host ASP files and SQL Database).
    Any help and/or guidance will be much appreciated.

    Have tried that and get the following error:
    Error: C:\Documents and Settings\Hardev\.netbeans\4.1\emulators\wtk22_win\emul
    ator\wtk22\appdb\.keystore (The system cannot find the file specified) The folder contains _main.ks and a keystore.sks amongst other files. I am running from the Windows Command Prompt window.. does this have anything to do with a syntax problem you think?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Is SAPI working fine with J2ME..?

    helllo..
    i wana to do my final project in speech recogniton.. application for PDA's..
    is the cureently SAPI.working fine with J2ME....Can i use it.. for PDA's application
    Message was edited by:
    M_Suhail

    Hi, i am also doing JSAPI for my FYP for pocket PC..I have tried freeTTS, sphinx4. All the demo can work. But when i try to use the 'Hello' programe from sun page, it can't work. Some null error after i hit the RUN button. dun know why. Den some ppl say the JSAPI that is availabe from the freeTTS, is not able to support the javax.speech.reconigation. I have not try out cloudgarden. but that one is only able us to use for 30days. after which. have to buy. Den is that version able to be use for pocketPC, or rather is it name as j2me?
    I have also found another one. pocketsphinx(free open source). ITs suppose to be for PPC. think u can try that out. but it's in C++ it hink. but i dun know how to use it. If u know, pls let mi know how.
    I only need to have a Command reconigation. after the reconation, it will send a btye of data thru the serial port profile of bluetooth.. Anyone has the open source of the voice thingy., pls share with us.
    tks
    [email protected]

  • Receive short messages with J2ME

    Hi,all
    Could anybody give me a hand of sms programming with J2ME.
    I want to receive short messages with J2ME. But i dont know how.
    Thanks very much!

    hi,
    You can send and receive sms through your network provider by using the wireless package.
    try the following links.
    you wil get a solution.
    [send sms example 1 |http://j2me-codes.blogspot.com/2008/02/j2me-sms-sending-sms-in-j2me.html]
    [send sms example 2|http://www.java-tips.org/java-me-tips/midp/sending-receiving-sms-on-j2me-device-4.html]
    Ramesh

  • Help with J2ME streaming

    Hi,
    My name is Constantinos Loizou and I am a student and currently developing a project for my Master's degree.
    I need to stream audio and/or video to a PDA device. There is a trick here which is:
    The PDA must receive the stream from a multicast address. For this I have implemented a Bridge application which joins the multicast group on behalf of the PDA and receives the Multicast RTP packets (which are sent from JMStudio) and Unicasts them to the PDA.(HP iPAQ) I had no problem implementing this. The streaming is done using JMStudio player which encodes the streaming audio data into a number of encodings (DVI/RTP in my case). I choose DVI/RTP and stream a .wav audio file.
    Now I have to accept the packets and play the stream on the PDA.
    The j2me application receives all the RTP packets successfully and I can extract usefull information from the packets such as: Timestamp, sequence number, payload type. The payload type is 5 which means it is a DVI4 encoding therefor the packets are accepted without any problem. I then save the data of the packet into a byte[] array and in regular intervals (50 000 bytes) I load them into a new ByteArrayInputStream(buffer); When I try to load the BytearrayInputStream and open it with a player I get the following error message:
    javax.microedition.media.MediaException: Failed to realize Player: Malformed wave media: expected 'RIFF'
    at com.sun.mmedia.WavPlayer.doRealize(+160)
    at com.sun.mmedia.BasicPlayer.realize(+84)
    at src.ViewVideoCanvas.run(ViewVideoCanvas.java:112)
    The command I run is: player = Manager.createPlayer(input, "audio/x-wav");//create new player
    And the error occurs on player.realize();
    I believe that this happens beacause the data is encoded to DVI/rtp. I have searched a lot and found the algorithm of decompressing the DVI data but again I get the same error
    Anyway, this is a brief description of my problem and I hope you can help me.
    Contact me for any more details or help you can provide (code sammples, decoding algorithms and implementations in java)
    Thank you
    Constantinos Loizou

    Hi my name is shaun benjamin and I am sorry I dont have the solution to this problem but could you please do me a fovor. I am looking for j2me source code for an audio streaming midlet tha can stream mp3 or wav. Could you please kindly send me some source code because I am not too fimiliar with j2me and am learning.

  • JDB: How to run jdb with sun.* classes.

    I'm attempting to run jdb and step through various classes in sun.*. I run jdb with the sourcepath set to the unzipped contents of the Sun Community License source code that I downloaded (jdb and source code version 1.3.1). However, every time I get to an internal Java API call, the "step" method skips over the call. I can do a "stop in" by specifying the particular internal Java method that I want to stop in and "list" will show me the Java code (which means that it is seeing the Java source). However, typing "step" at this point runs to the end of any of the Java internal methods and back to my own code.
    Is there a way that I can instruct the debugger that I really want to step into the Java internal classes?
    Thanks,
    Kevin Regan
    [email protected]

    Oh yeah, I'm hoping for my first Duke Dollars!
    You must issue an "exclude none" command to jdb
    to be able to trace sun.*
    In fact if you type "exclude" you can see that
    java.*,javax.*,sun.*,com.sun.*
    are excluded from steping by default in jdb(1.4.x)
    -Cameron Elliott
    [email protected]

  • J2EE with J2ME ... Please help

    Hello All,
    I want to know if it is possible to make J2EE application communicate with J2ME application?
    Actually I have developed a web application (J2EE application) which is needed to be run/accessed on a Tablet PC.
    I am also supposed to provide Ink Enabled Control for some of the functionalities for this Web Application.
    So, is this possible? If yes then can you please provide me some references for the same?
    It would be a great help if you can share your thoughts on this issue.
    Thanks in advance.
    Twinkle

    Here is a link to a section in the Swing tutorial that shows you how to use text components (JTextField, JTextArea, JEditorPane, JTextPane):
    http://java.sun.com/docs/books/tutorial/uiswing/components/text.html

  • Using accelerator keys for loading a appliaction made with J2ME

    Hi
    Is there any methods to use accelerator keys to load a application made with J2ME for mobile telephones. The application is not running and i must find a way to load the application using keys codes.
    How can i accomplish this? can i use the application manager and the jad file? i know that i can use PushRegistry for incomming connections to load the application automaticaly. But i need a way to accomplish this by using the key events on a mobile phone when the application is closed.
    Best Regard
    jan Fredrik Fallsen

    Hi
    Is there any methods to use accelerator keys to load a application made with J2ME for mobile telephones. The application is not running and i must find a way to load the application using keys codes.
    How can i accomplish this? can i use the application manager and the jad file? i know that i can use PushRegistry for incomming connections to load the application automaticaly. But i need a way to accomplish this by using the key events on a mobile phone when the application is closed.
    Best Regard
    jan Fredrik Fallsen

  • Compatability of jdk1.3 with j2me

    Hi,
    Is there any compatability problem(jdk1.3 with j2me)?
    will j2me support the jdk1.3?
    Advanced Thanks
    Audippa

    Can any body help on knowing of the compatability of jdk1.3 with j2me
    how can we know the compatabilty?
    is there any way to know the compatability?
    pls help on this
    Thanks
    Audippa Naidu.M

  • Can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

Maybe you are looking for

  • Enter Vendor Invoice - SAP T.Code FB60

    We have received an invoice from vendor for supplies and we do not have a purchase order for this invoice. We proceed to account through SAP T.Code FB60. The vendor should have charged sales tax but has not. While accounting the invoice we want to re

  • Sharing custom display profiles between multiple users

    Hello, I'm brand new to Mountain Lion and I can't figure out how to share a custom display profile between multiple users on the same MBP. I'm a photographer and I have two users set up on my laptop - one personal and one for shooting. I'm using a Co

  • Exporting/sharing to MJPEG codec

    I hope that this has not been covered before, I've searched around and am getting more confused by the minute. I am using OSX 10.6.5 with a built in iSight camera. I have iMovie 09 v 8.06, and iDVD v 7.04. I would like to save a movie made using the

  • Java Books

    Hi all, I am a Java back-end,server-side programmer (junior to mid-level). Worked mostly on core Java. I would like to improve my Java programming skills. I know hundreds of books and tutorials are out there, but taught it might be a good idea to ask

  • Addthis code doesn't work anymore

    Hey, I had noticed before, but now it's becoming a problem for me too: the www.addthis.com html insertable code does not work anymore in Adobe Muse. I can only find one earlier question posted on this but that question has apparently been deleted. Ca