OK, I found the root of my problem. Here is the mistake I have done.
Hopefully it can help folks that facing same problem with me.

My working IDE is eclipse. In eclipse, I have set the project to use
JDK 1.5 to run the SMSLib.
But, I did a big mistake here where I DIDNOT SET the JRE TO JRE 1.5.
The test program running smooth after I have set the JRE to 1.5

Thank you for the helps, especially Thanasis, Eko and aathisankar!
Really appreciate that. Thanks again!

On Mar 31, 7:01 pm, "Eko Budy Karuniawan" <[email protected]>
wrote:
> Yes right, your phone are connected properly. Your COM is detected properly
> and working properly..
> And that's It weird if javax.comm doesn't know the port.
> Another simple test is using SendMessage.java,
> Have you test it ?
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
>
> wai keong
> Sent: Tuesday, March 31, 2009 5:20 PM
> To: SMSLib User Group
> Subject: [smslib] Re: javax.comm.NoSuchPortException
>
> Thanks for your help Eko!
>
> I was trying to connect to my phone with HyperTerminal as per
> described in the link u sent me.
> Here are the results I get:
>
> OK
>
> +CPIN: READY
>
> OK
>
> I get the first "OK" after I type in "AT" once the phone is connected
> with HyperTerminal.
> Then, I type in "AT+CPIN?" and I get "+CPIN: READY" and the second
> "OK".
>
> I think from this simple test, it that proven that my phone is
> successfully connected to my PC?
>
> Thank you
>
> On Mar 31, 6:03 pm, "Eko Budy Karuniawan" <[email protected]>
> wrote:
> > Please refer to this document for testing via
> Hyperterminal.http://www.developershome.com/sms/howToUseHyperTerminal.asp
>
> > and I am waiting your result after using that method.
>
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]] On Behalf
> Of
>
> > wai keong
> > Sent: Tuesday, March 31, 2009 4:59 PM
> > To: SMSLib User Group
> > Subject: [smslib] Re: javax.comm.NoSuchPortException
>
> > Hi Eko,
>
> > I tried to connect to my phone with HyperTerminal and I think I able
> > to connect to the phone with HyperTerminal.
> > I'm sorry that I'm not familiar with Hyper Terminal.
>
> > After I click the "dial" button, I see the status is "dialing",
> > then, the HyperTerminal starts to show some word that I cant
> > understand as below:
>
> > ~ }#À!}!}!} }8}#}$À#}(}"}'}"}"}&} } } } }%}&,©­‹N/~~ }#À!}!}"} }8}#}
> > $À#}(}"}'}"}
> > "}&} } } } }%}&,©­‹}$½~~ }#À!}!}#} }8}#}$À#}(}"}'}"}"}&} } } } }%}
> > &,©­‹Í4~
>
> > Furthermore, I also try to dial to my phone with wrong phone number
> > and the status box show "no answer".
> > Therefore, I think I'm able to connect to the phone with
> > HyperTerminal.
>
> > Thanks
>
> > On Mar 31, 5:14 pm, "Eko Budy Karuniawan" <[email protected]>
> > wrote:
> > > Hello, can you test your COM port?
> > > If you could connect to COM4 via Hyperterminal ..this exception won't
> > rise.
>
> > > Or, where do you install those Comm files?
>
> > > -----Original Message-----
> > > From: [email protected] [mailto:[email protected]] On Behalf
> > Of
>
> > > wai keong
> > > Sent: Tuesday, March 31, 2009 3:37 PM
> > > To: SMSLib User Group
> > > Subject: [smslib] Re: javax.comm.NoSuchPortException
>
> > > Here are the configuration I set for the connection. Can you guys help
> > > me check is there anything is wrong??
> > > ...
> > > private String modemId = "modem.com5";
> > > private String modemComPort = "COM5";
> > > private int modemBaudRate = 57600;
> > > private String modemManufacturer = "Sony Ericsson";
> > > private String modemModel = "Sony Ericsson W300";
> > > ...
> > > SerialModemGateway gateway = new SerialModemGateway(
> > >                                 modemId,
> > >                                 modemComPort,
> > >                                 modemBaudRate,
> > >                                 modemManufacturer,
> > >                                 modemModel);
> > > ....
>
> > > I'm worry the Modem-Id (modem.com5) I put is wrong. can any1 pls
> > > verify for me?
> > > Thank you!
>
> > > On Mar 31, 3:52 pm, wai keong <[email protected]> wrote:
> > > > Thank you for your replies.
>
> > > > @Thanasis
> > > > 1. I'm sure I'm connecting to the correct COM port. I get the COM port
> > > > (COM5) from the Control Panel --> Phone and Modem Options ....
> > > > 2. Yes, I have installed the 3 Java Comm files as per described in the
> > > > documents.
>
> > > > @aathisankar
> > > > 1. I'm using cellphone to send sms. My test phone is Sony Ericsson
> > > > W300.
> > > > 2. I have installed the phone PC suite.
>
> > > > Now, I am able to connect my phone with my laptop with dial-up.
> > > > I have updated my SMSLib to version 3.4.0. But, I still facing the
> > > > same exceptions.
> > > > Do you guys have any idea?
>
> > > > Thanks
>
> > > > On Mar 28, 12:32 pm, aathisankar c <[email protected]> wrote:
>
> > > > > Hi wai...
>
> > > > >  Are you using Gsm modem or using cellphone to send the message...
> > > > > if you are using any kind of cellphone to send messge did you
> install
> > > the
> > > > > drivers for that..
> > > > > then how did yo find the port number where your modem is attached ..
> > > > > when i am wirking on windows i used nokia n72 and installed pc
> suite..
> > > then
> > > > > found the port number of the nokia modem attached in contril
> panel...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to