Beginner as for help

Hi, I'm new to this forum as well as programming.
1) I'm using JBuilder 6 to run Java applications, but do you run applications from MSDOS's command line ?
2)How can I print these patterns with some nested 'for' structures in Java :
*

1. You can run applications from an MS-DOS prompt, and you would do so by opening the prompt, navigating to the directory with your class file (assuming it's not in a package, you'll know if you've put it in a package), and typing "java MyProg" without the quotes. I find it easier to make a batch file though.
2. public class quickTest
  public static void main( String[] args )
     for (int i = 8 ; i > 0 ; i--)
       for (int j = 0 ; j<i ; j++)
         System.out.print("*");
       System.out.println("");
}

Similar Messages

  • Beginner ask for help

    Hi, I'm new to this forum as well as programming.
    1) I'm using JBuilder 6 to run Java applications, but how do you run applications from MSDOS's command line ?
    2)How can I print these patterns with some nested 'for' structures in Java :
    *

    Programming involves thinking and trying.Yep! Very true!
    If you are unable to try and think of the logic on the system, then it would definitely help you if you write down the logic in terms of manual steps on paper. If you were given the task of drawing that structure, then how would you do it one by one? Think in terms of the computer...or in other words walk through the logic on a paper. design the pseudocode in normal english. Then you can easily implement the logic on the system.
    As far as I am concerned, I hate the idea of starting off writing code on the system without proper work on the paper. Try and develop this habit of designing and writing the pseudocode on paper...it will take you a long way in making you a good programmer. Your code will get better and better slowly since you will know how to avoid mistakes!
    This is how you slowly develop logical thinking and become a good programmer.
    Vijay :-)

  • Logic Express Beginner begging for help

    I recently made the step up into the Mac world and love everything about my new mac book pro except I am struggling with Logic Express. I have used Adobe Audition for many years and know it inside and out however...I cant even figure out to record my voice with a microphone.
    I work in radio and only need the program to record my voice and to edit interviews (mp3 or wav files) for use on the radio. I tried hooking up my mobile pre usb pre amp up and downloaded drivers but couldn't get it to record. I can record using the built in my mic but the quality is insufficient for the airwaves.
    I know this must be something very simple but I am struggling , thank you so much in advance for any help you can give.
    Brian Douglas
    Q102 Cincinnati

    Hi,
    I'd start with opening a Finder window, and go to Applications > Utilities > Audio/Midi Configuration. If you open this program, you can set your default audio inputs and outputs, and set the input level, for example. If your interface doesn't show up here, you can be pretty sure that Logic won't see it, either.
    Then go to Logic, and look in Preferences > Audio >Devices. You should choose your USB preamp as your Device. As you can see, you can only choose 1 device here. BUT, in the Audio/Midi Configuration utility, you can "build" a virtual device consisting of more than one device (see the Audio menu of the utility). Just in case you'd like to use more than 1 interface in the future...
    Anyway, check page 99 of Help > Logic Express 8 User Manual.
    Kind regards,
    Jaap

  • "Your Purchase Could Not Be Completed" I was required to contact iTunes Support for help

    "Your Purchase Could Not Be Completed" I was required to contact iTunes Support for help
    I have checked my bank card and there still more than enough credit to purchase on an App, everything is correct but iphone wouldnt let me purchase

    Dear Mr. King_Penguin,
    Apologies in advance. I am an absolute newbie, and couldn't figure out how to "send" this other than checking your recent activity. I'm certain you get plenty "Thank you's". (This is another, -so please begin to skip here if the accolades are a nuisance!!) I promise that before I plague you w/ questions I will read as much as possible of what you've already "posted".
    I've used IOS devices for years- yet I am still very much a beginner, especially searching for ways to utilize my devices to a "greater extent".  My ios phobias began when I was gifted an iPod; terrified using "iTunes" on PC laptop, certain that syncing specific things would result in loss of data, cold sweats when a new "IOS Update" arrived, shock horror and awe at the entirely foreign & colourfully creative world of "Apple Language". Today my sadly underused iPad (4th Gen.) froze. The first go-to "reboot" wasn't working and the only thing on the device I had access to was Siri- and we really don't get along or talk very often...  On June 10th 2012 (4:10am) you posted & responded to a query.  (A "soft-reset"?!! Brilliant!) That post, saved me from pitching all my devices into the bin, today-three years later. After wasting hours fiddling w/o hope, I dipped a toe back in to Apple.com "support communities". I found your post quickly. Not at all the case (for me, with my ingrained "PC lingo") in the past. So, I thank you one thousand times, I've no idea why there exist tech angels such as yourself, why you do what they do for free, w/ no obvious benefits or profit-but I'm a "follower" now. Apologies once more for posting this here- I will go back to the newbie section and try to figure out all the things I should know to avoid future etiquette faux-pas. Sincerest thanks!!

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • Looking for help - Company is going to Mobile Asset Management service that does not support BB - especially BB 10.

    Hello,
    I am looking for ideas/help. I currently have a BB Z10 (10.1.0.2039) with Verizon Wireless.  The company has a BB Enterprise Server for older devices (I previously was on that).  I bought a Z10 several months ago and have been connecting to the corporate network through Lotus Traveler. They do not have and will not implement a BB 10 Enterprise Server. Some in IT informed that if the company used the BB software they could manage all devices..... not accepted.
    All my contacts, calendar, and company email is funneled to the BB Hub.....
    So my company is implementing a Mobile Asset Management Service that I have to sign up for (Airwatch?).  They only support Android and IPhone.
    Will future versions of the BB OS support Android Apps.... Soon (I have less than 2 weeks)
    I have read where it is possible to put the device in development mode to run Android Apps.  I don't know if that will work with this and have no idea how stable the phone is in that mode. I travel internationally so I don't know how a development mode would work overseas. Any thoughts?
    I like my Z10 but will need to switch to keep functionality if I can't find a work around 
    Any assistance ????
    Thanks for any help.

    Hi and Welcome to the Community!
    BB10 devices have the ability to run .apk apps via special methods. Development Mode is used only for installing the app...not for normal operation. So you install (side-load) the app in Development Mode, then go back to normal mode for normal operations.
    If a .bar file for the .apk app already exists somewhere, you can side load it to the BB10 device and see if it works or not. If there is not yet any .bar file, there is an app called SideSwype that can convert many .apk apps to .bar and install it to your device.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Looking for Help with Hyperion to JAVA

    I am looking for help with connecting Hyperion to Java. We are in Maryland but would be willing to work out something for remote consulting. If you have experience with connecting web services, hyperion, and Java and would be interested in about 80 hours of consulting please contact me at:[email protected] x4846

    Hi,
    From your description, you want to achieve the following goal:
    Configure Exchange to filter the attachments if the size is over 10 MB and store it in a public folder, and then forward the email to Salesforce.
    Based on my knowledge, I'm afraid that it can't be achieved. Exchange can filter messages with attachments, but it couldn't store these attachments on public folder automatically. Also, I don't see any transport rule can do it.
    Hope my clarification is helpful.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).

    Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).
    Problem - SFDC does not create cases from emails that have more than 10 MB of attachments. Our clients will not go-live if their clients cannot send in emails with attachments over 10 MBs
    Potential resolution - Configure MS exchange to strip off the attachments(if over 10 MB) and store it in a public folder, forward the email to Salesforce (so the case gets created or the email
    is associated to an existing case), the client should have some way to know if the attachments were stripped off and should be able to dlownload the attachments and continue with case resolution.
    Any help is appreicated!
    Thanks

    Hi,
    From your description, you want to achieve the following goal:
    Configure Exchange to filter the attachments if the size is over 10 MB and store it in a public folder, and then forward the email to Salesforce.
    Based on my knowledge, I'm afraid that it can't be achieved. Exchange can filter messages with attachments, but it couldn't store these attachments on public folder automatically. Also, I don't see any transport rule can do it.
    Hope my clarification is helpful.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Hello to all ... looking for help with 7520

    Hey I got a 7520 and want to know how I can get my computer to sync ?? or recognize my phone so I can load Pictures from the computer to the phone.

    Hey BigSteve!
    Here is a write up that should help you:
    http://supportforums.blackberry.com/rim/board/message?board.id=BlackBerryDesktopSoftware&thread.id=3...
    Cheers!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Trying to get a computer repaired, getting the run around - a plea for help

    First, some backstory:
    I ordered a refurbished ThinkPad T440s from the Outlet on July 21 after two weeks of fighting with the bots and snipers.  It was a nice machine: it had an i7 4600 processor and a FHD IPS display.  The outlet shipped my computer quickly and I was happy to receive it.  I opened it up and... it was the wrong computer altogether.
    I contacted a CS representative and she told me that the only option was to send the unit back for a refund and try again.  Apparently there is no inventory system in place to tell me if the computer I originally ordered was even available, or if it had been sent to a different customer.  Begrudgingly, I sent the original laptop back and received my refund.
    I decided to try again, and successfully managed to snag another machine with similar specs on July 29 after camping out on the Outlet site.  I was overjoyed, but this order has turned out to be a nightmare.
    After the status of my order sat on "Released to Manufacturing" for two weeks, I contacted bgriffin2 on these same forums.  After giving him my order information, my laptop shipped on the same day, August 12.  I was delighted.  
    When the computer arrived, I opened it up and I was pleased to see that it was the correct machine.  However, the laptop had severe scratching all over the rear LCD cover, as if someone had taken their car keys and dug grooves in the lid.  The edges of the computer were severely worn, and on one corner it looked like the pc had experienced a pretty nasty fall.  To make a long story short, the laptop did not look reconditioned at all.  It also had not been function tested, as there were numerous problems with the machine besides the cosmetics.  The fingerprint reader did not work and was not even recognized by the BIOS, the speakers made loud popping noises intermittently, and the external battery was not even recognized by the machine.  I still do not know if this was a battery issue, or if there is something wrong with the motherboard of the machine.
    I used to work at a facility that refurbished handsets for Verizon Wireless.  I will tell you up front that this sort of shoddy reworking and QC testing would never fly there.  This unit should have never left the facility as a scratch & dent, much less as a refurbished and remanufactured unit.
    Do you think that's the end of my sob story?  Oh no, we're just getting started.  Bgriffin2 acknowledged that this was unacceptable and he suggested I send it in for warranty service to have these issues resolved.  I spoke to a very nice woman at the Atlanta service center and she was very helpful in getting me a prepaid carton to send the laptop to Memphis for repair.  I sent the laptop off and it was deliviered to Lenovo on the 19th of August.  Since then, the status of my repair on the EasyServ website has looked like this:
    http://i.imgur.com/t3Qs03e.png
    Each and every time I see "Hold for customer information," I place a phone call to the tech support line and ask what they need from me.  The first two times I was redirected to the actual people doing the repair, as the representatives that answer the phone couldn't seem to discern what is going on with the repair.  Both times, I was told that they didn't need anything from me, that there was a glitch in the system and the hold was accidentally placed.  I was told that the hold was removed and that they would begin repairing my laptop immediately.  I was content with that answer until I received a phone call last Thursday from someone from billing.  This gentleman said that Lenovo wanted $300 to fix the scratched rear LCD cover as it was not covered by warranty.  I was stunned.  These people had my laptop for two weeks before tellling me that they wanted money from me.  I was appalled and told him that there was no way that I was going to pay for it.  I had to tell him twice that the unit was not a scratch and dent model, it was a refurbished model.  The scratching on the lid is not minor, and the machine does not work as it is supposed to.  He said that he would see if he could get the price reduced for me; I said absolutely not.  He said that he would see if they would fix it for free out of the goodness of their hearts, and I said fine, do what you can.  He promised to call me back and tell me about his findings; I have not heard from him again.
    Upset by the previous phone call, I immediately called the tech support number again.  A representative named Arva tells me that she sees that I am to receive a new laptop.  Confused, I tell her that I had one sent in for repairs.  She puts me on hold for a little while and comes back saying that the computer was damaged beyond Lenovo's acceptable specifications and that they were going to send me a newly refurbished laptop with the same specifications, and that I should expect a phone call within the next 24-48 business hours.  Of course, that was on Thursday.  I did not receive a call on Friday, and it was Labor Day weekend, so no calls then.  I also did not receive a phone call yesterday, but I noticed a new "Hold for customer information" popped up.
    I called again today to find out what they needed from me.  This time the tech support representative tells me that the battery won't hold a charge, and that's the reason for the hold.  Now tell me, why on earth would they not have another battery laying around to test with?  She tells me that there is no ETA, but I requested a phone call from someone who knows what's going on, and also an escalation of some type.  Notice that she did not mention a newly refurbished laptop as Arva had promised.  These people can't even keep their story straight.
    I am crying out for help here.  I am a grad student in CS and I absolutely NEED a computer.  I have a desktop at school, but it is not portable and I need a laptop.  Please, can someone get something done about this?
     My case number is A07YFM9.

    Hi massmercury,
    I want to apologize for your experience here with the service center. I am moving forward to have your case escalated for further review. Please see my private message.  I will be your point of contact until our Customer Advocate team reaches out to you. 
    Best regards,
    Bgriffin2
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How do you get of hold of anyone at Adobe for help?  Cannot download Photoshop CC.

    I could not update Photoshop CC from Creative Cloud desktop or online. I need Raw 8.3 to be compatible with Lightroom.  It is impossible to get a hold of anyone at Adobe for help.  Found their chat link once after much searching, someone finally answered then told me they were closing for the day and to call back the next day.  Could never find the chat link again.  Tried uninstalling PhotoshopCC because I saw that somewhere in the forum but still cannot download Photoshop CC.  Got error code U43M1U49 and said to retry or contact customer support.  Yeah right!  Totally frustrated with Adobe.  Anyone have any suggestions?

    Triste wrote:
    I update application manager and was able to load Adobe Premier CC from on
    line upload center.  When I tried to update more apps from the desktop CC,
    still failed.  Tried to update Adobe Premier CC from help, mostly worked,
    but got an message to close LogTransportApplication which I could not find,
    did not show in my Task Manager when tried to find it, so could not update
    Premier CC.  Updates still failed from desktop Adobe CC.
    Hi Triste,
    If you're having difficulties getting updates for your tools using the Creative Cloud Desktop app, then you can try downloading them without it by using the direct links for the CC updates on Windows or on Mac OS, for all CC apps.

  • A Request for help from me again! Yay!

    hi guys! I was working on implementing threads for the directions of the unit. When i press forward once...nothing happens, but when i press twice it gives me this HUGE list of errors. I dont have a clue. Again, any help would be appreciated.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class NBoard extends JFrame implements KeyListener{
         int selection = 0;
         boolean selectionmade = false;
         final int WIDTH = 600;
         final int HEIGHT = 600;
         Image Viz =Toolkit.getDefaultToolkit().getImage(JOptionPane.showInputDialog("What character do you want?")+".gif");
         int XC = 50;
         int YC = 50;
         Thread moving = new Move();
         Unit Host = new Unit();
         public NBoard(){
              this.setSize(WIDTH,HEIGHT);
              selection = Integer.parseInt(JOptionPane.showInputDialog("What level design do you want?"));
              if(selection > 0){
                   selectionmade = true;
              addKeyListener(this);
              this.setVisible(true);
         public static void main(String args[]){
              new NBoard();
         public void paint(Graphics g){
              if(selectionmade == true){
                   if(selection == 1){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine(WIDTH/2,0,WIDTH/2,HEIGHT);
                   if(selection == 2){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine(WIDTH/2,0,WIDTH/2,HEIGHT);
                        for(int ctr = 1; ctr < 6; ++ctr){
                             g.drawRect(WIDTH/4 ,ctr * 100, 20, 20);
                             g.drawRect((WIDTH / 3) * 2 ,ctr * 100, 20, 20);
                   if(selection == 3){
                        g.setColor(Color.white);
                        g.fillRect(0,0,WIDTH,HEIGHT);
                        g.setColor(Color.black);
                        g.drawLine((WIDTH/2) - 90,0,(WIDTH/2) + 90,HEIGHT);
                   g.drawImage(Viz,XC,YC,this);
              public void keyPressed(KeyEvent e){                              //The Problem Areas
                   if(e.getKeyChar() == 'w'){
                        moving.start();                                             //Starting the thread to move up
                   else if(e.getKeyChar() == 's'){
                        YC = YC + 2;
                   else if(e.getKeyChar() == 'a'){
                        XC = XC - 2;
                   else if(e.getKeyChar() == 'd'){
                        XC = XC + 2;
                   System.out.println(e.getKeyChar());
                   repaint();
         public void keyReleased(KeyEvent e){                              //The Problem Areas
              if(e.getKeyChar() == 'w'){
                   moving.interrupt();                                             //Trying to interrupt the thread once the key is released
         public void keyTyped(KeyEvent e){}
    class Move extends Thread{                                                  //The Problem Areas
         public void run(){                                                       //The Thread
              Unit.XC = Unit.XC - 2;
              try{
                   Thread.sleep(1000);
              catch (Exception e){}
    class Unit{                                                                      //The Object which will hold all of the information about each unit
         static int XC = 30;
         static int YC = 30;
    } By the way, here is my order of events, so you can look forward to seeing requests for help for them (hopefully not).
    Threads: Moving the guy around
    Threads: Making him shoot a ball at the mouses position
    Network: Allow others to join/play game (This is gonna be HUGE probably), while host decides on game type.
    Thanks for all the help so far!

    Where does moving ever get started? Why does Move extend Thread instead of implementing Runnable? (Implementing runnable is preferred and often the correct way to do it and it is in this case)
    But regardless there shoud be a moving.start() somewhere or start of the Thread that has the Runnable target Move.... I don't think I see one. Unless I missed it.
    so...itll work if i change the setup to Runnable?

  • Cry for help is this usual

    Hi, this is really a cry for help in the vain hope there is somebody at bt who cares about my broadband issue. Returned from holiday to find dsl light off on modem, did all the resets / power cycles but initially told a week ago it was an issue in my area and would return next day, then told it was a fault on line, then told it was a fault at exchange, now told its an issue in my area. Saw a Open Reach guy in my road, he said its rubbish and there is signal in the cabinet. Just spent half an hour on hold to level 2 support but they put phone down on me REALLY FED UP!!!

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
    Once you get a reply, make sure that you are logged into the forum, then click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
    They will respond either by phone or e-mail within 5-6 working days.
    Please use the tracked e-mail, to reply, not via the forum. Thanks
    This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
    When you submit the form, you will receive an enquiry number, so please keep a note of it
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • A tiny little cry for help: mic in bootcamp makes me sound like a mouse!

    I posted this on the InsanelyMac forum, and I thought I'd post it here too because I'm just that desperate for help... thanks in advance for reading.
    I run a MacBook Pro Core 2 Duo. When Snow Leopard came out I installed it and partitioned my drive to allow me to run Windows via bootcamp for the purpose of playing Aion with my husband.
    The game works fine, although it only works correctly when I'm hooked to my large Dell monitor. The built-in display makes the mouse/cursor not function correctly in-game.
    But that's relatively minor... the biggest problem is that the built-in mic, as well as any mic I plug into the Line In, makes me sound like a mouse when I speak. I SO don't want to be known as the squeaky mouse over ventrilo. (The problem occurs in a regular sound recorder too, so it is NOT ventrilo specific).
    The audio device is listed as Intel High Definition Audio: Device ID 0x83847680, Audio ID 30 - whatever that means.
    When I dive into the Control Panel audio preferences when booted into Windows, the driver is listed as IDT audio.
    Audio output seems to function perfectly.
    I would sure appreciate help if anyone has expertise or experience with this sort of thing. I'm at a little bit of a loss.
    TIA,
    Jen

    Hey, I had a thought, I don't know if it'll work and won't get the chance to find out until later tonight if I'm not too tired or until later tomorrow.
    I think that if the IDT drivers aren't installed in the first place, perhaps the issue can be averted entirely. However, it's going to take a bit of knowledge to do and some patience. The partition will need to be remade entirely so that one may end up with a fresh operating system. When the SL disk is put into the computer, instead of running the full driver setup, pick the drivers directly off the disk by exploring its folders and only install the ones you need. Instead of using the IDT drivers, I believe the SL disk also has Realtek HD audio drivers (if I remember correctly from the last time I looked). My thought is that this manual method can prevent having to deal with the IDT drivers which I believe are part of the issue.
    I understand that reinstalling XP is a process in itself, but this is the only solution I can think of. If manually installing doesnt work, my next move would be to use the drivers that come off the Leopard disk instead of the SL disk.
    Like I said, this is just a thought I have so when I get to it later I'll let you know how it goes unless you decide to give it a try before me.

  • [Request For Help] How To Send Email Midlet Using Secure Socket ?

    Hello, this is the first time i ask for help to forum.sun.com.
    i try to make secure connection for send email from MIDlet. Maybe you can check to my code :
    EmailMidlet.java
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    import javax.microedition.lcdui.;
    public class EmailMidlet extends MIDlet implements CommandListener{
    Display display = null;
    // email form fields
    TextField toField = null;
    TextField subjectField = null;
    TextField msgField = null;
    Form form;
    static final Command sendCommand = new Command("send", Command.OK, 2);
    static final Command clearCommand = new Command("clear", Command.STOP, 3);
    String to;
    String subject;
    String msg;
    public EmailMidlet() {
    display = Display.getDisplay(this);
    form = new Form("Compose Message");
    toField = new TextField("To:", "", 50, TextField.EMAILADDR);
    subjectField = new TextField("Subject:", "", 15, TextField.ANY);
    msgField = new TextField("MsgBody:", "", 90, TextField.ANY);
    public void startApp() throws MIDletStateChangeException {
    form.append(toField);
    form.append(subjectField);
    form.append(msgField);
    form.addCommand(clearCommand);
    form.addCommand(sendCommand);
    form.setCommandListener(this);
    display.setCurrent(form);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    notifyDestroyed();
    public void commandAction(Command c, Displayable d) {
    String label = c.getLabel();
    if(label.equals("clear")) {
    destroyApp(true);
    } else if (label.equals("send")) {
    to = toField.getString();
    subject = subjectField.getString();
    msg = msgField.getString();
    EmailClient client = new EmailClient(this,"[email protected]", to, subject, msg);
    client.start();
    }and EmailClient.java
    import javax.microedition.io.;
    import javax.microedition.lcdui.;
    import java.io.;
    import java.util.Date;
    public class EmailClient implements Runnable {
    private EmailMidlet parent;
    private Display display;
    private Form f;
    private StringItem si;
    private SecureConnection sc; //SSL
    private InputStream is;
    private OutputStream os;
    private String smtpServerAddress = "smtp.gmail.com"; //SSL
    String from;
    String to;
    String subject;
    String msg;
    public EmailClient(EmailMidlet m, String from, String to, String subject, String msg) {
    parent = m;
    this.from = from;
    this.to = to;
    this.subject = subject;
    this.msg = msg;
    display = Display.getDisplay(parent);
    f = new Form("Email Client");
    si = new StringItem("Response:" , " ");
    f.append(si);
    display.setCurrent(f);
    public void start() {
    Thread t = new Thread(this);
    t.start();
    public void run() {
    try {
    //SSL
    sc = (SecureConnection)
    Connector.open("ssl://"smtpServerAddress":465"); //smtp with SSL port 465
    sc.setSocketOption(SocketConnection.LINGER, 5);
    is = sc.openInputStream();
    os = sc.openOutputStream();
    os.write(("HELO there" "\r\n").getBytes());
    os.write(("EHLO" "\r\n").getBytes());
    os.write(("auth login" "\r\n").getBytes());
    os.write(("dHVnYXNha2hpci50cmlhZGl0eWFAZ21haWwuY29t" "\r\n").getBytes());
    os.write(("dGEuZW1haWxjbGllbnQ=" "\r\n").getBytes());
    os.write(("MAIL FROM:<">\r\n").getBytes());
    os.write(("RCPT TO:<">\r\n").getBytes());
    os.write("DATA\r\n".getBytes());
    // stamp the msg with date
    os.write(("Date: " new Date() "\r\n").getBytes());
    os.write(("From: "+from"\r\n").getBytes());
    os.write(("To: "to"\r\n").getBytes());
    os.write(("Subject: "subject"\r\n").getBytes());
    os.write((msg+"\r\n").getBytes()); // message body
    os.write(".\r\n".getBytes());
    os.write("QUIT\r\n".getBytes());
    StringBuffer sb = new StringBuffer();
    int ch = 0;
    while((ch = is.read()) != -1) {
    sb.append((char) ch);
    si.setText("SMTP server response - " + sb.toString());
    } catch(IOException e) {
    e.printStackTrace();
    Alert a = new Alert
    ("TimeClient", "Cannot connect to SMTP server. Ping the server to make sure it is running...", null, AlertType.ERROR);
    a.setTimeout(Alert.FOREVER);
    display.setCurrent(a);
    } finally {
    try {
    if(is != null) {
    is.close();
    if(os != null) {
    os.close();
    if(sc != null) {
    sc.close();
    } catch(IOException e) {
    e.printStackTrace();
    public void commandAction(Command c, Displayable s) {
    if (c == Alert.DISMISS_COMMAND) {
    parent.notifyDestroyed();
    parent.destroyApp(true);
    } When I try to debug project from netbeans, i found this error :
    Starting emulator in debug server mode on port 2668
    Connecting to 127.0.0.1 on port 2800
    nbdebug:
    Waiting for debugger on port 2668
    Waiting for KVM...
    Running with storage root temp.SonyEricsson_JP8_128x160_Emu10
    KdpDebugTask connecting to debugger 1 ..
    Running with locale: Indonesian_Indonesia.1252
    Connected to KVM
    Connection received.
    Attached JPDA debugger to localhost:2668
    java.io.IOException: error 10054 during TCP read +
    at com.sun.midp.io.j2me.socket.Protocol.nonBufferedRead(Protocol.java:299)+
    at com.sun.midp.io.BufferedConnectionAdapter.readBytes(BufferedConnectionAdapter.java:99)+
    at com.sun.midp.io.BaseInputStream.read(ConnectionBaseAdapter.java:582)+
    at com.sun.midp.ssl.Record.rdRec(+41)+
    at com.sun.midp.ssl.Record.rdRec(+5)+
    at com.sun.midp.ssl.In.refill(+18)+
    at com.sun.midp.ssl.In.read(+29)+
    at EmailClient.run(EmailClient.java:74)+
    Execution completed.
    5145824 bytecodes executed
    9258 thread switches
    1762 classes in the system (including system classes)
    0 dynamic objects allocated (0 bytes)
    0 garbage collections (0 bytes collected)
    debug:
    BUILD SUCCESSFUL (total time: 4 minutes 34 seconds)
    Regard
    Littlebro

    Don't multipost and don't use the browser's back button to edit your posts as that creates multiple postings. I've removed the other thread you started with the same questio.
    Also, don't post to long dead threads. I've blocked your post and locked the thread you resurrected.
    db

Maybe you are looking for