How to Send SMS using Java Program (full code sample included)

By: Emiley J. Emailed: 1681 times Printed: 2156 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

You can use this free Java sample program to send SMS from your PC using GSM modem connected to your computer to your COM port. You also need to download and install the Java comm api from Sun.

This program needs the following java files to function.

1. SerialConnection.java (This file is used to connect to your COM port from your java program)

2. SerialConnectionException.java (This file is for handling serial connection exceptions in your Java program)

3. SerialParameters.java (This program is used to set your COM port properties for connecting to your com port from your java program)

4. Sender.java (This is the program that implements runnable and sends SMS using the serial connection)

5. SMSClient.java (This java class is the main class that can be instantiated in your own java program and called to send SMS. This program in turn will use all the above four files internally to send out your SMS).

Download Send SMS Java sample program files

/*
 *
 * A free Java sample program 
 * A list of java programs to send SMS using your COM serial connection
 * and a GSM modem
 *
 * @author William Alexander
 * free for use as long as this comment is included 
 * in the program as it is
 * 
 * More Free Java programs available for download 
 * at http://www.java-samples.com
 *
 *
 * Note: to use this program you need to download all the 5 java files
 * mentioned on top
 *
 */
public class SMSClient implements Runnable{

  public final static int SYNCHRONOUS=0;
  public final static int ASYNCHRONOUS=1;
  private Thread myThread=null;

  private int mode=-1;
  private String recipient=null;
  private String message=null;

  public int status=-1;
  public long messageNo=-1;


  public SMSClient(int mode) {
      this.mode=mode;
    }

  public int sendMessage (String recipient, String message){
    this.recipient=recipient;
    this.message=message;
    //System.out.println("recipient: " + recipient + " message: " + message);
    myThread = new Thread(this);
    myThread.start();
//    run();
    return status;
    }
    public void run(){

    Sender aSender = new Sender(recipient,message);

    try{
      //send message
          aSender.send ();

         // System.out.println("sending ... ");

      //in SYNCHRONOUS mode wait for return : 0 for OK,
      //-2 for timeout, -1 for other errors
      if (mode==SYNCHRONOUS) {
          while (aSender.status == -1){
            myThread.sleep (1000);
          }
      }
      if (aSender.status == 0) messageNo=aSender.messageNo ;

    }catch (Exception e){

        e.printStackTrace();

    }

    this.status=aSender.status ;

    aSender=null;


  }
}

Java Home | All Java Tutorials | Latest Java Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(636)


1. View Comment

hi....can anybody help me....
i need the code to receive sms...


View Tutorial          By: nithin ms at 2007-02-23 08:34:01
2. View Comment

HI can you send send sms throgh java program above code doesnt work for me

View Tutorial          By: sasikumar at 2007-02-27 01:39:11
3. View Comment

It worked for me. Thanks a lot. Hi Sasikumar, I think you might have forgotten to change the SMSC number in the code.

View Tutorial          By: Ramlak at 2007-03-05 01:53:14
4. View Comment

I have loaded allthe 5 java files.But how to implement in the program ? Plz tell me.It is very urgent.If any body can send me complete working code of sending messege .PLZ SEND IT MY EMAIL
ashish_iips@yahoo.co.in


View Tutorial          By: ashish at 2007-03-08 20:33:11
5. View Comment

Hi, I need the complete working code for sending and recieving sms using java.

View Tutorial          By: Balaji Srikaanth at 2007-03-10 01:22:35
6. View Comment

The code gives the following exception :-


Exception in thread "main" java.lang.NoSuchMethodError: main

how to rectify it ....

please mail me at vikram.agnihotri85@gmail.com

THANKS ...


View Tutorial          By: VIKRAM at 2007-03-11 22:56:16
7. View Comment

the program does run thank you for that .....

but it doesnt send sms it just times out ....

does it has to do anything with the csca no... i put my sim no instead of that ....


View Tutorial          By: VIKRAM at 2007-03-12 13:34:24
8. View Comment

Hi Ashish, You just have to create an object of SMSClient class in any of your program and then call its SendMessage function with the parameters. Remember also to change the SMSC number accordingly.

View Tutorial          By: Ramlak at 2007-03-13 09:22:51
9. View Comment

it giving me error in following statment (using window machine)in file name serialConnection.java

portId = CommPortIdentifier.getPortIdentifier(parameters.getPortName());

error:javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)

plz reply !!!


View Tutorial          By: prathamesh at 2007-03-16 05:57:20
10. View Comment

Hi Prathamesh,
Maybe the COM port to which your modem is connected is in use by some other application. Make sure your COM port is free for use, try the other port or PC.


View Tutorial          By: Ramlak at 2007-03-19 00:46:49
11. View Comment

Hi can anyone help me out, i need a full jsp code with instruction - how to send and receive sms from mobile to PC, viceversa

Thanks in advance
Thangaraj


View Tutorial          By: thangaraj at 2007-03-20 12:40:05
12. View Comment

I am developing a system for paying electric bill that uses through bank using Short Messaging Service(SMS),Using Java.
Can I get any assistanc from anybody for a complete working code of those protocals.


View Tutorial          By: Isaya at 2007-03-26 01:11:59
13. View Comment

Hi VIKRAM, You cannot use your sim card number there. You check the SMSC number from your phone and use that number. Usually all the phones from a particular operator will have the same smsc number.

View Tutorial          By: Ramlak at 2007-03-29 00:38:55
14. View Comment

Hi,

Thanks a lot to the writer of this code.
With some initial hickups I got this code running ultimately.
But as of now I m able to send one sms at a time but I want to send more than one sms at a time.I used for loop at different places but its not working.
Can anybody please help me in this regards.

Thanks in advance.


View Tutorial          By: Bhushan at 2007-04-27 04:56:00
15. View Comment

hi this is from iniyan....
can you send the source code for sending and receiving from computer.send to my email id.... inbaini@gmail.com


View Tutorial          By: iniyan at 2007-09-09 06:50:18
16. View Comment

for me also The code gives the following exception :- Exception in thread "main" java.lang.NoSuchMethodError: main how to rectify it .... please mail me at ashisahadev@gmail.com and i am also trying to call this class file in my program,but it's not taking..so how can i do that...THANKS ...

View Tutorial          By: ashitha at 2007-09-12 03:09:12
17. View Comment

hi can you send me the complete working code for sending and recieving sms using java.i tried run that code but it shows errors.thanks in advance.please send it as soon as possible

View Tutorial          By: avanti at 2007-10-04 02:30:04
18. View Comment

hi!! friends i executed the code
and i am getting the following exception.
java.lang.UnsatisfiedLinkError:no SolarisSerialParallel in java.library.path.
can anybody please help regarding that.
thanks in advance


View Tutorial          By: chennareddy at 2007-10-15 00:07:30
19. View Comment

Hello,

Can you please send me the complete code to "RECEIVE" and "SEND" SMS Messages too.


View Tutorial          By: criz at 2007-10-16 21:06:30
20. View Comment

we are java research students.
we are working on sms based project, we have one issue of sending sms on fedora 7 with fargo maestro 20 gsm modem.Our Modem is connected to Serial Port.

We are newbies in Linux & having average knowlegde of java, j2me...

We have installed sun java in the linux box..then comm.jar api.
the deployment of the .so & java.comm jar is done as per requirement

our application is based on the following code:
http://www.java-samples.com/showtutorial.php?tutorialid=22

we have complied java files...then we have written the shell file for running the java class file.

--------------------------------------------------------------------------------
//DemoSms.java
public class DemoSms
{
public static void main(String args[])
{
SMSClient sc = new SMSClient(1);
sc.sendMessage("MyCellNo","Hello");
}

}
//ends here


#shell file

JAVA_HOME=/opt/jdk1.5.0_12
CLASSPATH=/opt/sms:$JAVA_HOME/jre/lib/comm.jar

$JAVA_HOME/bin/java -cp $CLASSPATH DemoSms

#shell file ends here



--------------------------------------------------------------------------------
/*
Console message errors we get are as follows
*/


[root@TEST ~]# sh SmsSend.sh
/dev/ttyS0
PortId = javax.comm.CommPortIdentifier@173a10f
java.io.IOException: Not all params are supported by kernel
at com.sun.comm.LinuxSerial.nativeSetSerialPortParams(Native Method)
at com.sun.comm.LinuxSerial.setSerialPortParams(LinuxSerial.java:346)
at SerialConnection.setConnectionParameters(SerialConnection.java:167)
at SerialConnection.openConnection(SerialConnection.java:100)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:595)

[1]+ Stopped sh SmsSend.sh
[root@TEST ~]# sh SmsSend.sh
/dev/ttyS0
PortId = javax.comm.CommPortIdentifier@173a10f


java.lang.RuntimeException:
Error opening "/dev/ttyS0"
lockf(): Resource temporarily unavailable
at com.sun.comm.LinuxDriver.getCommPort(LinuxDriver.java:66)
at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:369)
at SerialConnection.openConnection(SerialConnection.java:89)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:595)

--------------------------------------------------------------------------------

As we are newbies we are not able to trace where the actual problem is...
We have used this modem in windows env and it runs perfectly..

We have tried confirguring minicom also to try to send sms but we have failed in doing so..
We have already put around 20 hours trying to find the error but with no use..

Please help!!!..


View Tutorial          By: chetan at 2007-10-17 08:13:14
21. View Comment

how to execute all the 5 files plz tell me step by step . send it as soon as possible

View Tutorial          By: asraf at 2007-11-14 22:29:20
22. View Comment

i am run this code changing the SMSC (ex:+919886005444) but it take the Sender:*** time out at step 2*** error ............ please help me or mail me santosh.nand@linuxmail.org

View Tutorial          By: sknand13 at 2007-11-16 03:27:52
23. View Comment

Good one

View Tutorial          By: Ravi at 2007-11-19 03:30:40
24. View Comment

it giving me error in following statment (using Linux machine)in file name serialConnection.java portId = CommPortIdentifier.getPortIdentifier(parameters.getPortName());
javax.comm: Can't find javax.comm.properties!

java.io.IOException: javax.comm: platform driver class name = null
(Check 'driver' property in javax.comm.properties)

at javax.comm.CommPortIdentifier.loadDriver(CommPortIdentifier.java:244)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at SerialConnection.openConnection(SerialConnection.java:71)
at Sender.send(Sender.java:39)
at SMSClient.run(SMSClient.java:35)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: com.sun.comm.SunrayInfo.isSessionActive()Z
at com.sun.comm.SunrayInfo.isSessionActive(Native Method)
at com.sun.comm.Portmapping.registerCommPorts(Portmapping.java:155)
at com.sun.comm.Portmapping.refreshPortDatabase(Portmapping.java:100)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
at SerialConnection.openConnection(SerialConnection.java:71)
at Sender.send(Sender.java:39)
at SMSClient.run(SMSClient.java:35)
at java.lang.Thread.run(Thread.java:619)


View Tutorial          By: Priyadarsan at 2007-11-27 22:31:56
25. View Comment

hi can u send me the complete working code for sending and receiving sms using c++......plz send me asap..

View Tutorial          By: gautami at 2007-12-04 01:13:45
26. View Comment

its work well , thanks for code , but if any body have code for recieving sms by PC i whould be very thanck full! if he send it to me !
aghili_mary@yahoo.com
with regards


View Tutorial          By: mary at 2007-12-16 07:10:58
27. View Comment

Hi it really works fin great in my case.
Thanks Emily.


View Tutorial          By: Dnyan at 2007-12-31 02:03:40
28. View Comment

what are the basic requirements to send sms from pc?

View Tutorial          By: kanagarajan at 2008-01-02 07:52:44
29. View Comment

hello!!can anyone help me. can you send me the complete code using java about the SHORTEST JOB FIRST please!!asap.can u send it to my email add: zionne20@yahoo.com...thank you

View Tutorial          By: denisse at 2008-01-07 05:40:25
30. View Comment

Please, send me a working JSP version ,i got error like "NoClassDefFoundError",what can i do? May i Know do i need to make any extra settings,i have got javax.comm jar pasted in my jdk folder and it work fine but i have no idea how the properties file and window32.dll works.

View Tutorial          By: Pang at 2008-01-11 00:01:52
31. View Comment

Hello, Can you please send me the complete code to "RECEIVE" and "SEND" SMS Messages too.

View Tutorial          By: koksingh at 2008-01-15 00:22:40
32. View Comment

Hi there! the coding are SUPERB..bt i do nd help in receiving sms java codes.It giving me a headache on this sending & receiving sms services

View Tutorial          By: lily sandra at 2008-01-15 18:30:33
33. View Comment

Hi All,

This SMS code is working fine, but the major problem is it gets timeout at step 2.

And no way the message is received by the phone.

I am trying to connect a Samsung device to my system using USB cable, and i have set the port no and csca no after contacting to Airtel guys for the smsc no and the same no i have specified there.

In the implementation code i have specified the following code

SMSClient sc = new SMSClient(1); sc.sendMessage("MyCellNo","Hello")

here in the place of "MyCellNo" - i have specified the phone no to which the message has to be sent.

can you please let me know wht is the solution for this problem.

please mail me the code to the following mail id bmunavar@gmail.com

The implemented code is as follows


View Tutorial          By: Munavar at 2008-01-27 22:53:31
34. View Comment

Hi! Ramlak It Working But Sms didnot send why? and Also change the smsc no.
i am using airtel.smsc no +919840011003.

help me.


View Tutorial          By: balaji at 2008-01-28 02:41:47
35. View Comment

Hi All could you pls. send the execution of the above programs for sending SMS to a mobile.Thanks in advance

View Tutorial          By: subbu at 2008-01-28 03:14:27
36. View Comment

Hi,first of all thats for this code developer, its usefull one. When i run this programm using GSM modem i am getting three different results. 1. I didnt receive message when CMGS return ERROR.
2. I didnt receive message when CMGS return OK
3. I do receive message when +CMGS=23 like.
but the source is the same.... can any one help? how to fix this..


View Tutorial          By: Kathir at 2008-02-08 06:16:51
37. View Comment

Please i want to ask if this solution is really worked by you before or it is just a simple test because the comments above includes many errors and other problems?
what are the suitable GSM modem to start buing it .?


View Tutorial          By: Enas Sabry at 2008-02-20 04:16:39
38. View Comment

Hi... it would be good if someone could send the receiving SMS codes to me. It is kind of urgent. So any kind souls around please help. Thank you.

Email: active.view@gmail.com


View Tutorial          By: deb at 2008-02-20 11:36:51
39. View Comment

hi can any one help me how i can install javax.comm. package to run
this program of sending SMS to another
mobile phone. please send me at
jewel03cse@yahoo.com


View Tutorial          By: Jewel at 2008-02-26 21:52:17
40. View Comment

how to run the sms sending program
wether v should run all the five programs consecutively please send the procedure to run this program....
sriramgokul6666@yahoo.co.in


View Tutorial          By: ram at 2008-02-26 22:30:13
41. View Comment

hi can any one help me how to do basic pc actions using java code? for example "start" is the command then windows "start menu" has to be invoked. Please help me. Thank You. Email:rajasugu@gmail.com

View Tutorial          By: karthikeyan at 2008-03-14 04:18:52
42. View Comment

Thanks for providing detailed information .

View Tutorial          By: CM Mankar at 2008-03-18 04:37:03
43. View Comment

can u please send me the code for sending sms from system to mobile usig java

View Tutorial          By: Vicky at 2008-03-20 02:34:27
44. View Comment

Anyone can send me the java code for send and receive sms from mobile phone using pc or pda? my email is astrovenom@gmail.com. thanks..

View Tutorial          By: Alvin at 2008-03-21 01:12:50
45. View Comment

Hi Alvin, in order to send sms from phone I suugest the following. 1. Download this sample and customize in your server. 2. Then write a JSP that receives the parameters and calls the SMSClient to send SMS. 3. Write a simple <a href="http://www.java-samples.com/j2me">J2ME Application</a> that shows a form for sending sms and then connects to the above JSP to submit the fields.

View Tutorial          By: Vasan at 2008-03-21 01:44:02
46. View Comment

Hi i have studied these programs.
but unable to get run the program ie to get output. plz anybody help me to do it ie to send sms using these programs. i would be great thankful for u.i need it urgently plz.


View Tutorial          By: Karuna at 2008-03-30 08:46:00
47. View Comment

I have loaded allthe 5 java files.But how to implement in the program ? Plz tell me.It is very urgent.PLZ SEND IT MY EMAIL deviprasad83@gmail.com

View Tutorial          By: devi at 2008-04-01 01:02:28
48. View Comment

Hi Devi, After you download the 5 programs you need to create the 6th program and copy the source code shown on this page. If you look closely this program in turn is creating the instance of the SMSClient class to send out the SMS.

You also need to make changes in the SMSC number according to your case.


View Tutorial          By: Ramlak at 2008-04-01 01:51:42
49. View Comment

please somebody tell me how to run this application after instantiating SMSClient.java & also what to pass as mode in its constructor.

View Tutorial          By: black Panther at 2008-04-01 02:08:09
50. View Comment

Hi Blackpanther, the mode is either 0 or 1. If you want SYNCHRONOUS mode then use 0. otherwise pass 1. Synchronous mode will wait until the SMS is sent out. In order to use this sample. you have to create a 6th program (your application) in which you will have to create an instance of SMSClient and then call its sendMessage method.

View Tutorial          By: Ramlak at 2008-04-01 02:24:14
51. View Comment

i manage to download all the 5 part and compile them with no problem. But when i run it i have a error saying java.lang.NoSuchMethodError: main
Exception in thread "main". hopefully someone can help me asap. plz send me ur working code or any sort of help to selva_zero@yahoo.com


View Tutorial          By: Selva at 2008-04-09 07:53:09
52. View Comment

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)

Getting above error.

give me steps to resolve this .

Thanks,
Prakash


View Tutorial          By: Prakash at 2008-04-14 06:22:38
53. View Comment

Hi,

Your COM port is currently in use by some other application. You will have to close all the applications and try again.


View Tutorial          By: Ramlak at 2008-04-14 07:29:55
54. View Comment

I have tried that but still getting the same error.

what i am doing wrong ?

thanks ,
Prakash


View Tutorial          By: pra at 2008-04-14 21:55:44
55. View Comment

hi please help me . i want the full code to send the sms to the mobile.

Its really urgent ... I have to submit this project day after tomarrow....??????


View Tutorial          By: Prashant at 2008-04-16 06:08:23
56. View Comment

Hi all, i have tried above code, but am getting following error


javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source) java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source) Getting above error

but am in urgent need of working condition code , if u help me out ,

i'll be thankfull to you,

Regards
Shalini Iyer


View Tutorial          By: shalini Iyer at 2008-04-22 01:20:32
57. View Comment

Please some one send me the 6th program developed by you..I have developed one..but, there are many errors in it..it's very very urgent..Please also tell me the steps to execute this program to send the sms..Please mail me at mounika06@gmail.com Thnx in advance..

View Tutorial          By: mounika at 2008-04-25 02:49:56
58. View Comment

send me SMS RECEIVE code please

View Tutorial          By: Butler at 2008-04-26 05:33:40
59. View Comment

thanks a lot..please tell me how to implement this code..how do i get it to run..im getting lots of errors like the ones stated above...thanks a lot...zsanga_6@msn.com

View Tutorial          By: agnas at 2008-04-26 12:26:52
60. View Comment

Hi All..
Wen i'm running the code..the following exception occurs..Can any one tell me, why this error occurs? It's very very urgent..Please mail me at mounika06@gmail.com..Thanx in advance..
Exception in thread "main" java.lang.UnsupportedClassVersionError: Sms (Unsuppor
ted major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)


View Tutorial          By: mounika at 2008-04-26 14:27:30
61. View Comment

Hi Mounika, The reason to the problem is that you are trying to run your application using a Lower version of JDK than the 1 which you used for compiling the files.

To resolve this issue you must compile the classes using the same version of JDK as your JRE.


View Tutorial          By: Ramlak at 2008-04-26 20:06:21
62. View Comment

Hi Ramlak,
I am using jdk1.4.2 to run the application. The following error occurs..Please tell me why this is happening..It's very urgent..Please reply soon..Thank you..
Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.libr
ary.path
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: mounika at 2008-04-27 03:05:36
63. View Comment

Hi,
I am getting this exception..My modem is connected to COM3 port. Please tell me..how to rectify it..It's urgent..thanx
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: divya at 2008-04-27 04:12:19
64. View Comment

Hi mounika, Did you download and install the javacomm api. You will have to look for win32com.dll and then copy it to your system32 folder. You can download from this url http://www.cs.uml.edu/~fredm/courses/91.305/software/JDK118-javaxcomm.zip .

View Tutorial          By: Ramlak at 2008-04-27 05:49:42
65. View Comment

Hi divya, You will have to edit the SerialParameters.java file and change to COM3 accordingly.

View Tutorial          By: Ramlak at 2008-04-27 05:54:47
66. View Comment

Sorry about this. I cannot run this program because it don't have a main class for me to run. Or there is other way to run it and please show it to me. Thanks....

Besides that, please also let me know what kind of device is needed for this program. Thanks...

You can email the solution to me : bomberman_tsw@hotmail.com


View Tutorial          By: TanSW at 2008-04-28 20:14:20
67. View Comment

hey Mounika..did u solve ur problem ??if u did please tell me how to do it..im getting the same error..thanks

View Tutorial          By: agnas at 2008-04-28 23:59:37
68. View Comment

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source) java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source) can anyone please tell me how to solve this problem??
please its urgent..


View Tutorial          By: agnas at 2008-04-29 16:26:41
69. View Comment

Hi Ramalak,
My modem is connected to COM3 port and I have edited SerialParameters.java file accordingly..But now, I am getting the below exception.. Please suggest me a way to rectify it. it's very urgent..Thank u.

SerialConnectionException: Port currently owned by Unknown Windows Application
at SerialConnection.openConnection(SerialConnection.java:90)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: divya at 2008-04-30 23:19:26
70. View Comment

Hi Divya, Obviously some other application is using your COM port. You will have to close all applications, and any service that might be using it.

View Tutorial          By: Ramlak at 2008-05-01 22:16:12
71. View Comment

hi ramlak,i am getting sender *** time out at step 3***..can you please help..please post here or mail at zsanga_6@msn.com

View Tutorial          By: agnas at 2008-05-02 01:29:33
72. View Comment

sir the program is
error: error reading C:\Program Files\Java\jdk1.5.0_06jre\lib\win32com.dll; error in opening zip file
and while i execute previously compiled file i get

Tue May 06 09:09:38 IST 2008:Sender:*** time out at step 2***
Tue May 06 09:09:38 IST 2008:Sender:*** time out at step 2***

please help me sir i m in a serious problem with my final year project


View Tutorial          By: Yashovardhan at 2008-05-05 21:42:27
73. View Comment

hi,
plz help me i cannot find the way out of the error ie time out at step 2 please helpme out to solve this problem


View Tutorial          By: Yash at 2008-05-07 16:59:20
74. View Comment

Hi people,
for those getting the Time out as step 2.
Please check your modem. Search the internet for AT commands that are specific to the modem you are using.
Then connect the modem(with SIM) to your serial port.
Start the Hyperterminal and then give the AT commands to send SMS.
It must work from the hyperterminal.
If it doesn't, then there is some problem with the modem and the SIM.
If sending SMS using hyperterminal works, then use this program.
It will work.


View Tutorial          By: Ramlak at 2008-05-08 08:28:29
75. View Comment

thankyou Mr Ramlak for your help but please can you furthur hrlp me by telling that how can i start hyperterminal and give AT command

View Tutorial          By: yash at 2008-05-12 16:46:18
76. View Comment

thanks Mr Ramlak
i m using samsung j600 mobile and airtel sim for net please will u help me to solve the step 2 problem how can i check my hyper terminals


View Tutorial          By: yash at 2008-05-13 15:05:49
77. View Comment

can any body help to get the code for receiving SMS

View Tutorial          By: ash at 2008-05-15 01:07:19
78. View Comment

nativeFinalize: Error closing Handle 6
and
if the port given is correct the error is that the port is being used by an unknown application. while the port has modem connected to it
otherwise the code shows the timeout problem


View Tutorial          By: yash at 2008-05-16 17:43:42
79. View Comment

hi all !

This is the error im getting. Pls help..


Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at sms.SerialConnection.openConnection(SerialConnection.java:72)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at sms.SerialConnection.openConnection(SerialConnection.java:89)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)


View Tutorial          By: vjy at 2008-05-26 04:30:59
80. View Comment

Hi,

I am getting error "Sender:*** time out at step 4***" can you please tell me what could be the reason. I changed SMSC number of Netherlands/KPN, but still i am getting this error.

Regards,
Jose


View Tutorial          By: Jose at 2008-05-26 08:17:48
81. View Comment

Can you please send me the full code in sending and receiving SMS to computer and vice-versa. I only uses a seria cble and a 6110 Nokia phone. Thanks. Please ..

View Tutorial          By: jen at 2008-05-28 00:22:21
82. View Comment

IS Java Comm API will supports thw windows?

View Tutorial          By: SAM at 2008-05-29 03:26:44
83. View Comment

Hi,
All the information here was very much usefull for me to reach till I get the time out error at step 5.
I am getting the time out at step 3 and 5 alternatively!!!Any suggestions?
Thanks isn advance
Shaiju


View Tutorial          By: Shaiju at 2008-05-30 00:42:12
84. View Comment

hai vij i am also having error what sol u used to rectify it

View Tutorial          By: uma at 2008-05-30 01:05:39
85. View Comment

hi friends thank you very much for the code but this code is not working for me.
I am using J2EE and i got following exceptions

javax.comm: Can't find javax.comm.properties!

java.io.IOException: javax.comm: platform driver class name = null
(Check 'driver' property in javax.comm.properties)

at javax.comm.CommPortIdentifier.loadDriver(CommPortIdentifier.java:244)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at sms.SerialConnection.openConnection(SerialConnection.java:71)
at sms.Sender.send(Sender.java:40)
at sms.SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Thread.java:595)
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: isSessionActive
at com.sun.comm.SunrayInfo.isSessionActive(Native Method)
at com.sun.comm.Portmapping.registerCommPorts(Portmapping.java:155)
at com.sun.comm.Portmapping.refreshPortDatabase(Portmapping.java:100)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
at sms.SerialConnection.openConnection(SerialConnection.java:71)
at sms.Sender.send(Sender.java:40)
at sms.SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Thread.java:595)

Please help.thank you in advance.Any suggestions please mail me at suryakiran047@gmail.com


View Tutorial          By: Surya at 2008-06-13 07:06:07
86. View Comment

could anyone run this program on Netbean? If there is, i hopr you could guide me along with it.

I have this fault that i do not know how to resolve it, could anyone help?

symbol : class Sender

location: class modem.Main

Sender aSender = new Sender(recipient,message);

thkz.


View Tutorial          By: Wei Long at 2008-06-16 19:23:48
87. View Comment

Hi all,
I'm getting this error on running this code on Linux -
"SerialConnectionException:
Unsupported parameter" - while setting the baud rate.
It works fine on Windows.
Can anybody tell me how to get it working on Linux..
Thankyou, Shreya


View Tutorial          By: shreya.g at 2008-06-23 00:13:52
88. View Comment

Hi wei long, did you download all the five programs? You have to download all and compile.

View Tutorial          By: Ramlak at 2008-06-23 03:26:31
89. View Comment

Hi Shreya, in Linux, the COM ports are identified differently (Not COM1 or COM2). Something like String Port= "/dev/ttya";

View Tutorial          By: Ramlak at 2008-06-23 03:34:11
90. View Comment

Hi, I am getting following exception while running the client:
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialPar
allel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver c
om.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:430)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)

Many of you got the same error earlier. I would appreciate if anyone can help me out. Thanks


View Tutorial          By: Vasundhra at 2008-06-24 07:04:42
91. View Comment

Hi
I have a USB bluetooth that plug in my computer and a cell phone connect with my machine via bluetooth.

Can I use them send SMS by "Java comm api"?
If possible, How can I do it?

I sorry about my English? :)


View Tutorial          By: Duong D. Thien at 2008-06-25 06:09:07
92. View Comment

Thanks a lot for the code...
thats working fine...


View Tutorial          By: Rahul at 2008-06-28 14:16:10
93. View Comment

I am getting the error below.

Tue Jul 01 17:04:18 IST 2008:Sender:*** time out at step 2***

I am using the below code.

SMSClient SC=new SMSClient(0);
SC.sendMessage("919731977441","testing");

Can any body send me working code please to ganesh.pt@metro.co.in


View Tutorial          By: ganesh at 2008-07-01 05:35:31
94. View Comment

hi, i would like to know about sms sendimg via web application.
what r the basic requirment for that and any one have the source codeden
pls send me


View Tutorial          By: abhi at 2008-07-09 07:28:54
95. View Comment

Hello Friends, i am getting an error in following statment (using window machine)in file name serialConnection.java portId = CommPortIdentifier.getPortIdentifier(parameters.getPortName()); error:javax.comm.NoSuchPortException at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja va:105) plz reply !!! or send the full working code to my mailid albinthambi@gmail.com.
Thank You


View Tutorial          By: Albin at 2008-07-10 23:49:33
96. View Comment

Hi I have a USB bluetooth that plug in my computer and a cell phone connect with my machine via bluetooth. Can I use them send SMS by "Java comm api"? If possible, How can I do it? I sorry about my English? :)

View Tutorial          By: venkat c s at 2008-07-21 12:15:46
97. View Comment

hi,.. i have used this code to sending sms. It seems to be the code run well. but it gives time out saying"Time out at step 5".. i cannot find out the error that i have done. let me know what should i do to overcome this problem..

tx..


View Tutorial          By: dana at 2008-08-05 03:38:48
98. View Comment

I am not able to open the rar file, can you please send me jar or zip file to smschandra@yahoo.com. Or can you please let me know how can I open a rar file

View Tutorial          By: Chandra at 2008-08-07 10:35:59
99. View Comment

Hi Chandra, you will have to download the winrar tool (http://www.rarlab.com/download.htm). Then you can open .rar files.

View Tutorial          By: Ramlak at 2008-08-08 00:14:40
100. View Comment

How do i get tht GSM Connection .Can any one give the details of the sending SMS from jav program in detail

View Tutorial          By: srinivas raju at 2008-08-08 02:50:02
101. View Comment

hiiis
i m working on project related to SMS in java
but i m not getting wt to do
plz help me out
how to do all these 5 step by step.
THNX


View Tutorial          By: Parveen at 2008-08-08 13:23:20
102. View Comment

Hiiii

When I am executing this files I am getting a error "NoSuchPortException" and also "UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path" during the execution. So ,can anyone send me a perfect code throufgh which I can send SMS to my mobile and also requesting to let me know where I have to change to run that code successfully.


View Tutorial          By: Souvik Bhattacharya at 2008-08-18 00:21:31
103. View Comment

Hi all, i use this program but i got notsuchportexception. i close also all programs and application. i use reliance USB modem (datacard) when i use ZTE CDMA1X MODEM and send sms then send successfully but when i use java code then got notsuchportexception pls help me its arent or send to my email id riturajr@rediffmail.com
or have you any complete free of cost send sms feture


View Tutorial          By: ritu at 2008-08-21 11:00:49
104. View Comment

this site is good, can anyone plz suggest me how to write a java code for sending messages in unicode using at commands?

View Tutorial          By: Prithvi at 2008-08-27 01:09:56
105. View Comment

Hi , This SMS code is running fine, but the major problem is it gets timeout at step 6. What does it means?And why get my SMS the recipient?
Thanks Vager


View Tutorial          By: VageR at 2008-09-02 06:33:59
106. View Comment

Hi Rahul,How to run this program kindly send me the procedures as well.pls.

View Tutorial          By: Das at 2008-09-04 00:53:02
107. View Comment

hi,this is nishad from india.....
i have a doubt related to jsp...
i am currently developing a project called Virtual Lab...
which is a web site...
this site provides an environment for particual programming language
(say java...)..i hav succeded in retriving the code and making a
'.java' file from it...
now my aim is to compile this '.java' file as soon as its code enterd by the user in the browser...
i.e. i need not run that file from myself...
it should get executed on its own...
can u provide me help?


View Tutorial          By: NISHAD at 2008-09-06 09:23:15
108. View Comment

I want to download that 5 sms sending program .from where i can download them?

View Tutorial          By: anwar at 2008-09-08 02:22:06
109. View Comment

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
Yes the problem is here 1
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at SerialConnection.openConnection(SerialConnection.java:72)
at Sender.send(Sender.java:46)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)
null
OK 1
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:89)
at Sender.send(Sender.java:46)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)

I am getting the above errors please help me. . . .


View Tutorial          By: Rahul at 2008-09-09 04:05:35
110. View Comment

hi .the program does run thank you for that ,i need 5 file above pls any body send me 5files in my email
almazeny2007@yahoo.com
thnks for all


View Tutorial          By: mazen at 2008-09-09 04:55:16
111. View Comment

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: Can't find library SolarisSerialParallel (SolarisSerialParallel.dll) in java.library.path

View Tutorial          By: Sony at 2008-09-10 01:28:52
112. View Comment

hi the code is working fine till step5 and am getting an java.lang.NumberFormatException at step6.

i could not understand, the need for messageNo in the code.

message is sent successfully but an exception is throw at the end.
what is the solution.


View Tutorial          By: raj at 2008-09-16 22:55:40
113. View Comment

can we use this code in a web application. your help in this regard is appreciated. thanks in advance

View Tutorial          By: phani at 2008-09-17 06:15:26
114. View Comment

Of course you can use this in a web application. All you have to do is create an JSP page with the form that takes in message and phone number to send the message and then call the SMSClient's Sender method with these values. The SMSClient class could be a Java Bean.

View Tutorial          By: Ramlak at 2008-09-17 08:24:21
115. View Comment

hello friends .. am looking for the java code that allow me to send and receive pictures ... please try to help

View Tutorial          By: ahmed at 2008-09-18 21:48:21
116. View Comment

can you please e mail me a code about hotel reservation

View Tutorial          By: princeton at 2008-09-19 02:32:13
117. View Comment

Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path
javax.comm.NoSuchPortException
I am getting the above errors please help me.


View Tutorial          By: Dinesh557 at 2008-09-23 04:18:47
118. View Comment

hey i found answer for
Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path
when copy win32com.dll in to the Java\jre1.6.0\bin
but i still have problem of

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
please help me


View Tutorial          By: Dinesh557 at 2008-09-23 05:14:09
119. View Comment

hi,
i am download 5 files and instantiate SMSClient class and call sendmessage method like this client.sendMessage("919884009554", "hai");
and run this program i got this message
"Tue Sep 23 16:51:37 IST 2008:Sender:*** time out at step 2***
", how can i solve this problem, please give some solution to me,

whith regards,
ganesh kumar


View Tutorial          By: ganesh kumar at 2008-09-23 05:27:16
120. View Comment

Hi
Can u plz tell me how to implement this. I have made a new file to call the method in sender.java file ....
I gives me the following Error

javax.comm: Can't find javax.comm.properties!

java.io.IOException: javax.comm: platform driver class name = null
(Check 'driver' property in javax.comm.properties)

at javax.comm.CommPortIdentifier.loadDriver(CommPortIdentifier.java:244)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at com.mcsil.sms.SerialConnection.openConnection(SerialConnection.java:72)
at com.mcsil.sms.Sender.send(Sender.java:45)
at com.mcsil.sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:595)
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: isSessionActive
at com.sun.comm.SunrayInfo.isSessionActive(Native Method)
at com.sun.comm.Portmapping.registerCommPorts(Portmapping.java:155)
at com.sun.comm.Portmapping.refreshPortDatabase(Portmapping.java:100)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
at com.mcsil.sms.SerialConnection.openConnection(SerialConnection.java:72)
at com.mcsil.sms.Sender.send(Sender.java:45)
at com.mcsil.sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:595)


View Tutorial          By: Rohan at 2008-09-23 05:52:31
121. View Comment

how to execute all these five programms tell me step by step in detail.

plzz reply as early as possible!!!!!!!!!


View Tutorial          By: shweta at 2008-09-24 07:35:22
122. View Comment

Hi, I need the complete working code for recieving sms using java.
issam_lachheb@libero.it


View Tutorial          By: Issam at 2008-09-26 01:24:04
123. View Comment

i see that lots of people get this exception : javax.comm.NoSuchPortException
closing all application doesnt work.
is there anyone out there that know how to fix this? please tell


View Tutorial          By: oded at 2008-09-28 03:33:33
124. View Comment

in this matter i get also this exception :

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver

im working on windows xp, anyone knows how to solve it?


View Tutorial          By: oded at 2008-09-28 05:41:35
125. View Comment

well no one answered , i figured it out yesterday and this code works fine, so i thought to share this info with those who still/will have these problems

these links helped me :
1. http://www.velocityreviews.com/forums/t421604-p-error-loading-solarisserial.html
and
2. Using RXTX documentation in wiki

also, another thing that is important is to change all references from 'javax.comm' to 'gnu.io'

sharing is good :) and thanks for the code Emiley


View Tutorial          By: oded at 2008-09-29 00:32:16
126. View Comment

I am suffering with the same error as of ganesh...i.e.,"Tue Sep 30 11:31:56 IST 2008:com.sgtech.Sender:*** time out at step 2***".......plz help me out...Mr.RAMLAK even i followed ur suggestion i.e.,using hypertenrminal there its working but same problem persisting with code plzz help me out...

View Tutorial          By: Sri Bhavani at 2008-09-30 00:18:38
127. View Comment

Who can send me the program and source to call this 5 x file?

View Tutorial          By: Michael Chon at 2008-10-04 21:03:30
128. View Comment

I have got "time out at step 6". How can I resolve it? I think it may be the cntrlZ not working. Any idea?
mchon123@gmail.com


View Tutorial          By: MCHON at 2008-10-05 12:36:42
129. View Comment

i am getting the following error when i ran this program.

i am running the program on window machine.
which gsm/modem simulator you are using to test this program.
please post the step by step procedure to run the program.



Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:595)
BUILD SUCCESSFUL (total time: 12 seconds)


View Tutorial          By: nancy kapoor at 2008-10-07 14:26:21
130. View Comment

I don't think GSM/Modem simulatur, will get it work. I am using Nokia PCMCIA GSM Modem.

For your error, it look like cannot detect the com port.

Could we share experience on it, my email address is "mchon123@gmail.com"


View Tutorial          By: Michael Chon at 2008-10-08 10:35:55
131. View Comment

Hi, I don't have any GSM modem. Will it work if I connect my Mobile phone (Siemens CX75) to the comm port on my PC? And should I need to install the driver for that? after this setting will i be able to send sms from this program? and can I have your email address for farther communication?

View Tutorial          By: Arif at 2008-10-09 11:29:14
132. View Comment

Does your Siemens CX75 can show up as COM port device on your PC? mchon123@gmail.com

View Tutorial          By: mchon at 2008-10-10 18:24:11
133. View Comment

can anybody tell me the full code for sending sms from pc to mobile...plz reply at my mail id-shikha1311@gmail.com

View Tutorial          By: shikha at 2008-10-13 11:43:40
134. View Comment

I am getting the following exception
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: int com.sun.comm.SolarisDriver.readRegistrySerial(java.util.Vector, java.lang.String) while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at sample.SerialConnection.openConnection(SerialConnection.java:72)
at sample.Sender.send(Sender.java:45)
at sample.SMSClient.run(SMSClient.java:45)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
at sample.SerialConnection.openConnection(SerialConnection.java:89)
at sample.Sender.send(Sender.java:45)
at sample.SMSClient.run(SMSClient.java:45)
at java.lang.Thread.run(Thread.java:595)

can any one help me in this regard or anyone please send the working code that you have..


View Tutorial          By: Balraj Selvakumar at 2008-10-14 03:12:20
135. View Comment

Can someone tell me how to run in linux 7.10...
My step is
1. Compile this source in neatbeans
2. I followed step from http://www.agaveblue.org/howtos/Comm_How-To.shtml to installing RXTX and jcomm
3. I got error


RXTX WARNING: This library requires the user running applications to be in
group uucp. Please consult the INSTALL documentation. More information is
avaiable under the topic 'How can I use Lock Files with rxtx?'
check_lock_status: No permission to create lock file.

please see: How can I use Lock Files with rxtx? in INSTALL

Can someone helpme :)


View Tutorial          By: fatwa perdana at 2008-10-15 03:27:49
136. View Comment

The above code given for sending SMS through your PC will only work incase only u have connected your mobile with PC.

Is there any way to send sms to a particular mobile number by using internet without connected your mobile.


View Tutorial          By: ROHAN at 2008-10-17 00:55:46
137. View Comment

Hi, I need the library of Communication API, to run on Windows Platform. Please tell me the URL for the above said cause

View Tutorial          By: arun at 2008-10-23 05:10:06
138. View Comment

i need jsp code for free sms send.
if anybody know that send to <haribkrish@yahoo.co.in>.
please send me.


View Tutorial          By: Harish at 2008-10-30 03:20:31
139. View Comment

hiii frnds will u ls send me the program for sending sms from the system to a mobile...
pls forward it to my mail...
taha@visiontux.com


View Tutorial          By: Taha Sharif at 2008-10-31 00:37:15
140. View Comment

Dear All, I am getting the following exception for a code which connects a GSM Mobile and sends a SMS to the recipient I want... But I am getting the following exception
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:72)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:44)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:91)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:44)
at java.lang.Thread.run(Thread.java:595)
...

As per my knowledge the code is unable to generate the
portId using CommPortIdentifier.getPortIdentifier(String Port_name) method..I am using the port_name="COM1"..Please help..u can revert back at my mail id whichi is

mailprotik@gmail.com


View Tutorial          By: Protik Basu at 2008-10-31 05:30:36
141. View Comment

HI,
I want to send an sms via website to mobile can anybody has send me the same code or how to do it...


View Tutorial          By: Hemant at 2008-11-04 05:26:30
142. View Comment

hi all m getting following error ,
can anyone tell me where is the problem.


D:\raj\SMS\sms>javac *.java

D:\raj\SMS\sms>java SMSClient
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialPar
allel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySe
rial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.So
larisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:430)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:45)
at SMSClient.run(SMSClient.java:38)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:45)
at SMSClient.run(SMSClient.java:38)
at java.lang.Thread.run(Unknown Source)

D:\raj\SMS\sms>

raj26139@gmail.com

thanx


View Tutorial          By: raj at 2008-11-04 21:46:12
143. View Comment

Hi Ramalak, I am suffering with the same error as of ganesh and SriBhavani...i.e.,
"Fri Nov 07 10:55:48 GMT+05:30 2008:Sender:*** time out at step 2***".......plz help me out...

Mr.RAMLAK even i followed ur suggestion i.e.,using hypertenrminal there its working but same problem persisting with code plzz help me out...
I am able to send SMS using Hyper Terminal..but not able to send using this code...
My modem is connected to COM4 currently..But if I give COM4 in the parameters list..it is giving NOSuchPORT Exception..
If I give COM1 in the Parameters list, it is giving Time Out at Step2..
This is very important for me..Plz plz suggest me what to do..


View Tutorial          By: Divya at 2008-11-06 22:46:12
144. View Comment

Hello Ramlak, I am too getting
java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError

please help me out.
tell me what to do ?
Thanks a lot.


View Tutorial          By: Amruta at 2008-11-07 23:56:17
145. View Comment

Hiiii Al, I am Ashraf Abu Aisheh, i am working to solve all your problems...
Please give me some days to fished the project. I will provide all of you the worked code.
Regards,
ashraf.i2c@hotmail.com
:D:D


View Tutorial          By: Ashraf Abu Aisheh at 2008-11-09 14:56:39
146. View Comment

hi!!!!!!!!! MR. RAMLAK will u plz tell the methode how to impliment ^th program as you told abone which methode i have to call.

View Tutorial          By: balwant at 2008-11-10 17:19:44
147. View Comment

Hi,Please send me running code for sending sms from Pc @ rahul.patil@seemoredata.com

View Tutorial          By: rahul at 2008-11-14 05:15:02
148. View Comment

Hi All,
I can send sms successfully from Windows XP, by using the java codes.
I found very very simple codes.

Please check this one and inform me if you cannot deploy.

But please be sure all things first. I am trying trying to send in Linux , open SUSE...

1. Please try to send SMS via Hyper Terminal first. Don't try my code before you can send message form hyper terminal first.

(My modem is quite old Wavecom. WMOD2, for that one you can use standard driver, I use the 9600 bps.)

Try to make sure the COM port and the modem setting you chose in HyperTerminal to be matched. Otherwise when you type "AT", it will show funny characters in hyper terminal.

And I am now doing for my customer's SMS authentication program.

import javax.comm.*;
import java.io.*;
import java.util.*;
import java.lang.*;

public class SerialWrite implements Runnable, SerialPortEventListener
{
static String output="";
public void run()
{}

static Enumeration portList;
static CommPortIdentifier portId;
static String dest = "+6596123116";
static String messageString = "Hello Testing11";
InputStream inputStream;

static SerialPort serialPort;
static OutputStream outputStream;

public void serialEvent(SerialPortEvent event)
{
switch (event.getEventType())
{
case SerialPortEvent.BI:
case SerialPortEvent.OE:
case SerialPortEvent.FE:
case SerialPortEvent.PE:
case SerialPortEvent.CD:
case SerialPortEvent.CTS:
case SerialPortEvent.DSR:
case SerialPortEvent.RI:
case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
System.out.println("Error");
break;
case SerialPortEvent.DATA_AVAILABLE:
{

BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
String line = "";
try
{

while ( (line = reader.readLine()) != null)
{

if(line.equalsIgnoreCase("OK") || (line.indexOf("+CMGS") != -1))
{
output=line;

}
Thread.sleep(10);

}
}
catch (Exception e)
{
System.err.println("Error while reading Port " + e);
}
break;

}
} //switch
}

public SerialWrite(SerialPort serial)
{
try
{
inputStream = serial.getInputStream();
try
{
serial.addEventListener(this);
}
catch (TooManyListenersException e)
{
System.out.println("Exception in Adding Listener" + e);
}
serial.notifyOnDataAvailable(true);

}
catch (Exception ex)
{
System.out.println("Exception in getting InputStream" + ex);
}

}

public static void main(String[] args) throws Exception
{
int i=0;
//String line0 = "ATZ\r\n";
String line1 = "AT+CMGF=1\r\n";
//String line2 = "AT+CSCA=\"+6581867612\"\r\n";

//String line3 = "AT+CMGS=""\"" dest + "\""+"\r\n";
//String line3 = "AT+CMGw="+"\""+ args[0] + "\""+"\r\n";
String line3 = "AT+CMGS="+"\""+ args[0] + "\""+"\r\n";
System.out.println("This "+ line3);
//String line4 = messageString;
String line4 = args[1];

portList = CommPortIdentifier.getPortIdentifiers();
while (portList.hasMoreElements())
{
portId = (CommPortIdentifier) portList.nextElement();
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL)
{
System.out.println("SMS Sending........");
if ( portId.getName().equals("COM1"))
{

System.out.println("SMS Sending....Port Found");
try
{
serialPort = (SerialPort) portId.open("SerialTestApp", 2000);
SerialWrite wr = new SerialWrite(serialPort);
}
catch (PortInUseException e)
{
System.out.println("Port In Use " + e);
}
try
{
outputStream = serialPort.getOutputStream();
}
catch (IOException e)
{
System.out.println("Error writing to output stream " + e);
}
try
{
serialPort.setSerialPortParams(
9600,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
}
catch (UnsupportedCommOperationException e)
{
System.out.println("Error");
}
try
{

//outputStream.write(line0.getBytes());
//Thread.sleep(10);
//while(!output.equalsIgnoreCase("ok"))

//Thread.sleep(10);
//
System.out.println("It seems OK now");

output="";
outputStream.write(line1.getBytes());
while(!output.equalsIgnoreCase("ok"))
Thread.sleep(10);


output="";

//outputStream.write(line2.getBytes());
//while(!output.equalsIgnoreCase("ok"))
//Thread.sleep(10);

output="";

outputStream.write(line3.getBytes());
Thread.sleep(10);
System.out.println("It seems OK now3");
System.out.println("I am here");
System.out.println("This one is output"+output);
for(i=0;i<3;i++)
{

outputStream.write(line4.getBytes());
Thread.sleep(10);
outputStream.write(26);
outputStream.write("\r\n".getBytes());
System.out.println("This one is outputaaaaa "+output);
outputStream.flush();
System.out.println("This one is outputaaaaa "+output);
while(!output.equalsIgnoreCase("ok"))
Thread.sleep(10);
System.out.println("This one is outputdfsdfsdf:"+output);
output="";

//outputStream.write(line5.getBytes());
Thread.sleep(10);
if(output.equalsIgnoreCase("ok"))
System.out.println("Message Sentsfsfasfsafs !!!!!!!!!1");
}

}
catch (IOException e)
{
System.out.println("Error writing message " + e);
}


}
}
}
}

/** show text in the text window
* @param Text text string to show on the display
*/
public static void showText(String Text)
{
System.out.println("TEXT "+Text);
}
}

Try to send my AT commands, line 1, line 2, etc in Hyperterminal first.
Otherwise, you will not see how it works.
That one really works. The original codes show some errors and I change some AT command to send.

To run the code, I think you should have intermediate Java Developing skills,

java SerialWrite "+6596123116" "This one is my message"



I also can send SMS by using minicom from SUSE now.

Please don't ask me silly questions...
If you use the same modem or similar ones, you will definately be able to send SMS by this java codes...

Please try to follow the advice from Sun ..., like that , javax.comm.properties should be already in the jre/lib...etc

Good Luck...!!


View Tutorial          By: henrynawaung at 2008-11-14 06:41:13
149. View Comment

Hi, I implemented those project in my NetBeans, created main class and configured com port, but still I have error: time out at step 5. my phone is SEK800i, what is the trouble?

View Tutorial          By: Leshqo at 2008-11-14 07:09:13
150. View Comment

Hi Kartikeyan and all,

can you please send me the detailed working code and how it works on checkoutitsme@gmail.com

Thanks in advance.


View Tutorial          By: Piyush at 2008-11-14 07:24:16
151. View Comment

Hi

Anybody plz send me the sms sending html code. I want to add it my blog plz help me...

v4venky@ymail.com


View Tutorial          By: Venky at 2008-11-19 08:33:22
152. View Comment

Hi, from where i can download javax.comm API jar file.

View Tutorial          By: Chandra at 2008-11-19 11:49:46
153. View Comment

Can anybody send the full working code for sending the SMS. My email
a_kalaskar@transworld-compressor.com


View Tutorial          By: Atul at 2008-11-26 04:47:51
154. View Comment

Dear All...................,
I have run the code properly in Windows as promised in point 145 at this site,
I will send the code for all.
Anyone who wants the code just send me at ashraf.i2c@hotmail.com
But I have a problem...
How can run the code in Linux server?
And what about the dll file in linux?.....
Please help me......

Regards,
ashraf.i2c@hotmail.com


View Tutorial          By: Ashraf Abu Aisheh at 2008-12-01 13:52:42
155. View Comment

hi,im working with a project,in which i have to send message to mobile i have seen this program,can anyone send the full code for it immediately.And step by step procedure to run this code and also say about the SMSC number.

View Tutorial          By: gomathi at 2008-12-08 09:04:35
156. View Comment

hi,am working on this project..sending SMS from PC to Mobile..am stuck with this problem..
Sender:*** time out at step 2***

am using Beetel ADSL 2+ modem & sony Ericsson W810 mobile...wil this application support this modem or do i need to use GSM only..any ideas plz suggest


View Tutorial          By: rajesh at 2008-12-10 00:16:10
157. View Comment

that was WMC modem i think not Beetel ADSL 2+ modem.plz rectify

View Tutorial          By: chandu at 2008-12-12 22:05:16
158. View Comment

ya,i changed tht to GSM modem but stil there is a problm
Its working fine some time or else giving this error..
Time out at step 2 or 4 or 5.


View Tutorial          By: rajesh at 2008-12-15 01:56:35
159. View Comment

would you please send me a code that can be run please manvaputra@yahoo.com

View Tutorial          By: putra at 2008-12-17 13:26:26
160. View Comment

When i run the program,Iam getting this
Sender:*** time out at step 2***.
I don't know any thing about modem,tell me about this and how to connect that to system please clearly explain to me


View Tutorial          By: anitha at 2008-12-17 21:37:36
161. View Comment

Hi Ramalak, I m getting the error
Thu Dec 18 14:29:54 IST 2008:Sender:*** time out at step 3***
how can i solve this problem, please give some solution to me,

whith regards,
srikar


View Tutorial          By: srikar at 2008-12-18 02:05:56
162. View Comment

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/Unsupporte
dCommOperationException
at SendComm.main(SendComm.java:120)
Caused by: java.lang.ClassNotFoundException: javax.comm.UnsupportedCommOperation
Exception
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 1 more

Hi,can anyone help me with this?
Thank you


View Tutorial          By: RobustTm at 2008-12-18 23:19:46
163. View Comment

Hi Dear i need help how to send SMS using java

View Tutorial          By: NasirAftab at 2008-12-23 07:18:21
164. View Comment

hi,
can you tell me how to run the code to send and receive sms
i have downloaded 5 programs but i am unable to run it please help me


View Tutorial          By: raghu at 2008-12-26 03:15:52
165. View Comment

hi all,
I have run the code downloaded from your site to send sms but it is not running fine these are the errors please take a look at them and please rectify them


C:\Documents and Settings\Administrator\Desktop\sms>javac *.java
SerialConnection.java:1: package javax.comm does not exist
import javax.comm.*;
^
SerialConnection.java:12: cannot find symbol
symbol: class SerialPortEventListener
public class SerialConnection implements SerialPortEventListener,
^
SerialConnection.java:13: cannot find symbol
symbol: class CommPortOwnershipListener
CommPortOwnershipListener {
^
SerialParameters.java:32: package javax.comm does not exist
import javax.comm.*;
^
SerialConnection.java:25: cannot find symbol
symbol : class CommPortIdentifier
location: class SerialConnection
private CommPortIdentifier portId;
^
SerialConnection.java:26: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
private SerialPort sPort;
^
SerialConnection.java:241: cannot find symbol
symbol : class SerialPortEvent
location: class SerialConnection
public void serialEvent(SerialPortEvent e) {
^
SerialConnection.java:70: cannot find symbol
symbol : variable CommPortIdentifier
location: class SerialConnection
portId = CommPortIdentifier.getPortIdentifier(parameters.getPortNam
());
^
SerialConnection.java:71: cannot find symbol
symbol : class NoSuchPortException
location: class SerialConnection
} catch (NoSuchPortException e) {
^
SerialConnection.java:87: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
sPort = (SerialPort)portId.open("SMSConnector", 30000);
^
SerialConnection.java:88: cannot find symbol
symbol : class PortInUseException
location: class SerialConnection
} catch (PortInUseException e) {
^
SerialConnection.java:139: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
SerialConnection.java:169: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
SerialConnection.java:181: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
SerialConnection.java:252: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.DATA_AVAILABLE:
^
SerialConnection.java:276: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.BI:
^
SerialParameters.java:54: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
SerialParameters.java:55: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
SerialParameters.java:56: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.DATABITS_8,
^
SerialParameters.java:57: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.STOPBITS_1,
^
SerialParameters.java:58: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.PARITY_NONE );
^
SerialParameters.java:216: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_5;
^
SerialParameters.java:219: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_6;
^
SerialParameters.java:222: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_7;
^
SerialParameters.java:225: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_8;
^
SerialParameters.java:243: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_5:
^
SerialParameters.java:245: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_6:
^
SerialParameters.java:247: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_7:
^
SerialParameters.java:249: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_8:
^
SerialParameters.java:270: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_1;
^
SerialParameters.java:273: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_1_5;
^
SerialParameters.java:276: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_2;
^
SerialParameters.java:294: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_1:
^
SerialParameters.java:296: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_1_5:
^
SerialParameters.java:298: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_2:
^
SerialParameters.java:319: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_NONE;
^
SerialParameters.java:322: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_EVEN;
^
SerialParameters.java:325: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_ODD;
^
SerialParameters.java:343: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_NONE:
^
SerialParameters.java:345: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_EVEN:
^
SerialParameters.java:347: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_ODD:
^
SerialParameters.java:362: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_NONE;
^
SerialParameters.java:365: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_XONXOFF_OUT;
^
SerialParameters.java:368: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_XONXOFF_IN;
^
SerialParameters.java:371: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_RTSCTS_IN;
^
SerialParameters.java:374: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_RTSCTS_OUT;
^
SerialParameters.java:376: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_NONE;
^
SerialParameters.java:387: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_NONE:
^
SerialParameters.java:389: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_XONXOFF_OUT:
^
SerialParameters.java:391: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_XONXOFF_IN:
^
SerialParameters.java:393: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_RTSCTS_IN:
^
SerialParameters.java:395: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_RTSCTS_OUT:
^
52 errors

C:\Documents and Settings\Administrator\Desktop\sms>







Please help me in this regard,
Thanks ,
raghu


View Tutorial          By: raghu at 2008-12-26 22:40:12
166. View Comment

well...raghu download the sun api...whose link is http://java.sun.com/products/javacomm/(also given above the program)
i using a sify braodband connection...
while running my own class where i hav instantited SMSClient in main method...im getting this errror
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at sms.SerialConnection.openConnection(SerialConnection.java:72)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at sms.SerialConnection.openConnection(SerialConnection.java:89)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)
How to solve this problem???


View Tutorial          By: rima at 2008-12-27 22:22:03
167. View Comment

Hi Rima,

Check out http://forums.sun.com/thread.jspa?threadID=605232 to solve your issue.


View Tutorial          By: Ramlak at 2008-12-28 03:00:01
168. View Comment

Hello MR, I was running sms package to send sms, and it's running well, but while I running for twice, it's should results same message, ....
I was creating a class based GUI to send sms, where this class has a button with actionListener to make instance object from SMSClient class....


View Tutorial          By: Ronized at 2008-12-29 16:53:33
169. View Comment

Hi MR,are you have java code to read sms...... thank,please help me

View Tutorial          By: ronized at 2008-12-29 16:59:27
170. View Comment

Hi, I have mobile application developed in java with local micro database on mobile, I want to send an sms on event by java application to mobile numbers present in mobile database.
Can anybody help in achieving this ? Thanks in advance :), My id- meenuarora16@yahoo.co.in


View Tutorial          By: Meenu at 2008-12-30 02:46:54
171. View Comment

are you have java code to read sms from gsm modem, please send to me (ronizedsynch@yahoo.com) thank b4.. ^-^

View Tutorial          By: ronized at 2009-01-01 20:36:24
172. View Comment

THNX RAMLAK..
HEY RAMLAK I HAVE A LOT OF DOUBTS REGARDING JAVA RELATED TO JAVA COMMS PACKAGE..MY ID is
vinod1987in@yahoo.com


View Tutorial          By: Vinod at 2009-01-02 22:04:40
173. View Comment

hello sir i want to know how to run this pogram as it is giving main error

View Tutorial          By: Pranjay at 2009-01-07 03:33:45
174. View Comment

hi,
i have tried to download the sun api from the link given above
but it is not working it is directing to the following <a rel="nofollow" href="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/DownloadSingleSoftware-Start?ProductID=WylIBe.phrsAAAEc5cMbE7vN&LICENSE-hTRIBe.pJwUAAAEc98MbE7vN=on&s_eVar4=cds&VVA_00000000005000075424=SUSE%20Linux%20Enterprise%20Server%2010%20Service%20Pack%201&VVA_00000000005000075423=Multi-language">link</a> which is giving me a dump and it is not working fine with the windows it is displaying the linux flavours when i am trying to download the link please help

Thanks in advance
raghu.


View Tutorial          By: raghu at 2009-01-07 05:45:33
175. View Comment

Hi Ramlak,
Am getting
Sat Jan 17 13:51:54 IST 2009:Sender:*** time out at step 2***
error.
Can u please help me sort it out and send a mail to shivkumar.85@gmail.com


View Tutorial          By: Shiv Kumar at 2009-01-17 02:01:01
176. View Comment

----- main---
Inside Run ...
OK 0
COM4
Yes the problem is here 1
null
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:45)
at SMSClient.run(SMSClient.java:42)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)OK 1

at Sender.send(Sender.java:45)
at SMSClient.run(SMSClient.java:42)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: pushpam at 2009-01-23 06:14:07
177. View Comment

Can u please help me. I run the SerialConnection program. But i got errors.
theerror s package javax.comm not found in import


View Tutorial          By: Praseetha.K at 2009-01-23 09:34:35
178. View Comment

The code gives the following exception :-


Exception in thread "main" java.lang.NoSuchMethodError: main

how to rectify it ....

please mail me at lourdufelix@gmail.com

THANKS ...


View Tutorial          By: Lourdu Felix at 2009-01-26 03:37:53
179. View Comment

I have an error on step 0:

recipient: +336xxxxxxx message: Hello SMS World
SerialConnectionException: Port currently owned by SMSConnector
at SerialConnection.openConnection(SerialConnection.java:90)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:38)
at java.lang.Thread.run(Unknown Source)
sending ...
OK
Wed Jan 28 10:35:58 CET 2009:Sender:*** time out at step 0***


How can i Fix it....

My GSM modem isn't used by another application..

Anybody can help me?


View Tutorial          By: xenogaz at 2009-01-28 02:43:50
180. View Comment

Hi Ramlak, Can you please let me know to resolve the issue related to "SerialConnectionException: Port currently owned by SMSConnector" as the same application is going to send the sms. Please help us out to get this done. Thanks a lot for reading it.

View Tutorial          By: Braj at 2009-01-29 08:50:33
181. View Comment

Hi Braj,
You are probably using threads to send sms. Maybe the one of the thread is still using the port while another thread tries to send out. You could probably use a queue. Save the messages you want to send out in a database first. Then write a program that picks up one by one from this database and sends out. Once sent out, set a flag so that it wont be sent again.

Do not give up. Many people have used and implemented this code successfully, it only needs a bit of a tweak here and there based on your own setup.


View Tutorial          By: Ramlak at 2009-01-29 20:03:14
182. View Comment

Hi Ramlak,

I tried to use the database instead of threads and hence now I am able to connect to port. But When it tried to connect to modem (110BX1 ADSL2+Router, Airtel Modem) it gave me some errors.
AT
OK
AT+CREG?
(I got some boxes and it showed the error)
So it failed here. After analysis what I could find out is, my modem is not able to enter in the text mode or can say unable to connect to netwrok, however internet is working fine.
I tried with hyperterminal to check the modem status. But when I tried to connect to port it worked, while when I tried to put modem in text mode or any other mode, it is giving me errors. I am really frustrated with this. Can you please tell me how it can be debugged.

Ramlak, Please advise on this.

Thanks a lot for help.
Braj.


View Tutorial          By: Braj at 2009-02-07 03:31:13
183. View Comment

can anyone send me how 2 sms from java code......
rkraju.n@gmail.com

I willbe more thankfull if u send me that...


View Tutorial          By: ramesh at 2009-02-07 04:26:06
184. View Comment

hi! we tried using the 5 java files...we build them using netbeans and there were no errors yet there seems to be happening nothing...
may we know how does the system exactly works like if it has a GUI or will it directly send the msg to the phone...
hope you can help us in he sonnest time possible...
thank you so much!


View Tutorial          By: anne226 at 2009-02-10 23:58:46
185. View Comment

ei! its me again..i badly need you help coz we are to present our final year project today...
i have compiled the files & got these errors (just like everone):

run:
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:38)
at Sender.send(Sender.java:36)
at SMSClient.run(SMSClient.java:32)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:50)
at Sender.send(Sender.java:36)
at SMSClient.run(SMSClient.java:32)
at java.lang.Thread.run(Thread.java:619)
BUILD SUCCESSFUL (total time: 2 seconds)

im using nokia e51 and sometimes n73 connected via usb...im using windows xp...accrdg to my device manager, the nokia e51 usb is connected in COM14..

hope for your positive response...pls email me: rubieanne226@yahoo.com

thanx so much!


View Tutorial          By: anne226 at 2009-02-11 10:24:21
186. View Comment

I tried running this code.. I used motorazr v3i as a modem. I get the error of UnsatisfiedLinkError. I know that i am using a solaris api but how do make that working in windows. I am able to send and receive sms in the HyperTerminal. Please Help. Thanks

View Tutorial          By: Arvind at 2009-02-14 10:24:37
187. View Comment

Hi to All,
I am working on struts based apllications,

Now I need to send the SMS to our customers who regiserd with us.
I downloaded the example from http://www.java-samples.com/showtutorial.php?tutorialid=22 to run this program what are the steps I have to follow Please send me the details to my Id write2ishmayel@hotmail.com
Thanks in Advance,
Ishmayel.


View Tutorial          By: Ishmayel at 2009-02-19 21:27:14
188. View Comment

hi Emiley J.,
i am geting this error while runing the program,

#######################################

java.io.IOException: Error instantiating class com.sun.comm.Win32Driver
com.sun.comm.Win32Driver
at javax.comm.CommPortIdentifier.loadDriver(CommPortIdentifier.java:239)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: com.sun.comm.SunrayInfo.isSessionActive()Z
at com.sun.comm.SunrayInfo.isSessionActive(Native Method)
at com.sun.comm.Portmapping.registerCommPorts(Portmapping.java:155)
at com.sun.comm.Portmapping.refreshPortDatabase(Portmapping.java:100)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)
##########################################
i tried all the things that are written in javax.comm api's readme. but still get the same exception plz hrlp me out its urgent


View Tutorial          By: jugal at 2009-02-20 02:14:23
189. View Comment

hey hiii.
at last the progrma has be running successfully
but it gives error when i am trying to send the SMS to more thn one number..
i tried almost all the posibilities but not able to run it successfully.this is wht i tried to do:


makign the mode Asynchronous and calling client.sendMessage() twice
it gives this exception after sending 1st msg"
SerialConnectionException: SMSConnector
at SerialConnection.openConnection(SerialConnection.java:90)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)


View Tutorial          By: jugal at 2009-02-20 08:22:31
190. View Comment

Hi ..

I'm try to run the full sample code but it give me this note when i execute it :

Sender:*** time out at step 4***

what does it mean?!!!!!!!!

also

when I use the second code which is implement by henrynawaung

I get:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsExecption : 0
at SerialWrite.main<SerialWrite.java:98>

so what can I do now??


I realy need to send sms with java ..

plz help ..


View Tutorial          By: Eng.A at 2009-02-21 03:11:02
191. View Comment

hi ..

for second code which implement by henrynawaung ..

I got this :

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at SerialWrite.main(SerialWrite.java:98)
Press any key to continue...

what is the solution ?


View Tutorial          By: Eng at 2009-02-21 03:53:29
192. View Comment

at
OK
at+cmff=1
OK
at+cmgf="+919422099997"
OK
at+cmgs="+919422190077"
>How are you?->
+CMGS: 185

OK

i have tried above code using hyper terminal and a message from my mobile is going to no. +919422190077

that means my connection with the computer is perfect.

but when i am trying to send msg through code it is giving me error

C:\>cd C:\j2sdk1.4.2\bin

C:\j2sdk1.4.2\bin>java shri

Caught java.lang.ClassNotFoundException: com.WinDriver while loading driver com.
WinDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:536)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:536)

if anyone can know where i am going wrong.
please reply me at shrikarwa1@gmail.com
OR
shri_karwa@yahoomail.co.in


View Tutorial          By: shrinivas at 2009-03-07 23:16:51
193. View Comment

Can anyone help me.I need basic requirements with code to send sms from pc.

View Tutorial          By: Elaiyaraja at 2009-03-09 03:47:46
194. View Comment

Copy the javax.comm.properties into your $JAVA_HOME/jre/lib folder

View Tutorial          By: sophie at 2009-03-11 08:23:25
195. View Comment

The code gives the following exception :-


Exception in thread "main" java.lang.NoSuchMethodError: main

how to rectify it ....

please mail me at yenduriswetha@yahoo.co.in

THANKS ...


View Tutorial          By: swetha at 2009-03-12 07:19:23
196. View Comment

hi, would you please send me the detail to implement the code.............. and also please tell me how to get the GSM modem...
My email-id: nayeemkhan24@yahoo.co.in


View Tutorial          By: nayeem at 2009-03-13 08:47:27
197. View Comment

Can I use my Nokia 6300 as my GSM Modem???? Please reply asap.... tnx in advance

View Tutorial          By: deKi at 2009-03-17 03:54:59
198. View Comment

welll program runs but fails at the statement where portID is got.
getting an exception "NoSuchPortException" well i am using nokia 7610 connected through usb cable and when i check for the available modem in control panel in "phone and modem setiings" i can figure out that "Nokia 7610 USB Modem" is connected to COM2 port and working.. and later changed that PortName in program in Sender.java file as COM1 to COM2 but it didnt worked out for me....
Plz guys tell me how to make this thing working with nokia 7610 connected through usb cable on COM2 port ....
I am in urgent need dudes......
Regards Aman...


View Tutorial          By: Aman Aggarwal at 2009-03-22 22:42:52
199. View Comment

I tried to use the code's but getting one error as :-

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at sms.send.SerialConnection.openConnection(SerialConnection.java:77)
at sms.send.Sender.send(Sender.java:55)
at sms.send.SMSClient.run(SMSClient.java:46)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at sms.send.SerialConnection.openConnection(SerialConnection.java:94)
at sms.send.Sender.send(Sender.java:55)
at sms.send.SMSClient.run(SMSClient.java:46)
at java.lang.Thread.run(Thread.java:619)

plz help me rectify these errors.. actually my com port is com3 how to use it?? i am not able to get it... what should i change or modify in any of the file?? .. plz help me regarding this matter!!!!


View Tutorial          By: Ashish at 2009-03-23 03:10:22
200. View Comment

I tried to create an object on my 6th code but i always get the error that "says not yet implemented" i have also an updated libraries but still i have the same error what should i do, i find your code much easier to understand compared to others thanks for a faster reply.

View Tutorial          By: AARON VICU√ĎA at 2009-03-24 05:20:24
201. View Comment

Hi all this program is working very fine .... i had some doubts as i too have posted one query (199) .. but now i have resolved it and this program is working fine!!! ....thanx for such a good program!! ..

to all people who are having the problem of
javax.comm.NoSuchPortException
first check if ur COM port is really been detected by the driver ( as it was not in my case) ...thats the reason u'll get this problem!!! .. i'll give you one program that will display all the serial and parallel ports in ur system .. just check if ur port is there or not....

/* program*/

import javax.comm.*;
import java.util.Enumeration;

public class ListPorts {
public static void main(String args[]) {
Enumeration ports = CommPortIdentifier.getPortIdentifiers();
while (ports.hasMoreElements()) {
CommPortIdentifier port = (CommPortIdentifier)ports.nextElement();
String type;
switch (port.getPortType()) {
case CommPortIdentifier.PORT_PARALLEL:
type = "Parallel";
break;
case CommPortIdentifier.PORT_SERIAL:
type = "Serial";
break;
default: /// Shouldn't happen
type = "Unknown";
break;
}
System.out.println(port.getName() + ": " + type);
}
}
}

just check it ...
this is what the output will be!!( my case)

COM1: Serial
COM2: Serial
COM7: Serial
LPT1: Parallel
LPT2: Parallel
my port is COM7 .. so just check it !!!!

Regards ..... Ashish!!!


View Tutorial          By: Ashish at 2009-03-25 04:28:25
202. View Comment

Please let me know the SMSConnector number of any service provider, kindly mention the service provider name. My mail id is chandrashekhar_y81@yahoo.co.in

View Tutorial          By: Chandra Shekhar at 2009-04-01 00:21:54
203. View Comment

can anyone tell me which type of device i need to use to execute this program.

Iam using MY samsung mobile which can act as GSM Modem.

Do i need to do any configuration settings to make it work or it is enough to connect my samsung mobile to PC using data cable?
Please let me know soon i need solution urgently pls.

Thanks,
Dhanunjay


View Tutorial          By: dhanunjay at 2009-04-01 00:31:17
204. View Comment

hi.. all.. its working fine for me... thank u very much...

View Tutorial          By: Padmaraj at 2009-04-01 09:42:29
205. View Comment

hi all i receive below error can any one help me please?
Exception in thread "main" java.lang.NoSuchMethodError: main

Thank you !


View Tutorial          By: Purushothaman at 2009-04-03 17:38:42
206. View Comment

HELP! HELP! HELP!
i got an time out at step 3. please someone help :'(

Sumit


View Tutorial          By: sumit at 2009-04-03 20:19:51
207. View Comment

Hi,
I am using Nokia 3110c connected to PC. But the program stalls at Step 0 itself. And then throws timeout .

Please help


View Tutorial          By: Satish Raj at 2009-04-04 07:32:54
208. View Comment

Please assist me in getting the code to read messages from mobile using mobile's GSM modem.

View Tutorial          By: Jaydatta at 2009-04-05 23:24:57
209. View Comment

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Unknown Source)


Please help me to solve this error
thanks in advance


View Tutorial          By: amit doshi at 2009-04-06 02:00:28
210. View Comment

Help Me

I just run the ListPorts.java but no output (not displaying any details about ports. I am using external GSM Modem to send sms. I am running the SMSClient.java and getting the bellow error.

javax.comm.NoSuchPortException at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)


Can you please help me to resolve this issue.

Thanks,
Srinivas
vsr.rao@gmail.com


View Tutorial          By: srinivas at 2009-04-06 03:14:57
211. View Comment

hi, srinivas ... i too was having the same problem earlier ..it happens when the setup is not proper... just do this...
You don't
just put the comm.jar file into your class path, though that is
the first step. You also must copy the shared library to the bin
directory, and the javax.comm.properties file to the lib directory
of the runtime environment.

or simply....
copy comm.jar \jdk1.3\jre\lib\ext
copy win32com.dll \jdk1.3\bin
copy javax.comm.properties \jdk1.3\jre\lib

and also put the win32com.dll to system32 folder..
and then after doing this setup then run the list ports it will definately show the ports


View Tutorial          By: Ashish at 2009-04-07 06:57:31
212. View Comment

Plz send me steps to configure and run project to send sms.

View Tutorial          By: sandeep kale at 2009-04-08 07:23:45
213. View Comment

i have downloaded the code and calling the the SMSClient file by my main program. my program is being compiled fine but when i try to execute this program i am facing exception.
i have done the job of placing files exactly as described in earlier post still i am unable to run the code.
my exception is
java.lang.NoSuchPortException

my email id is sandeepdas.cse@gmail.com, please help me to run this code


View Tutorial          By: sandeep das at 2009-04-09 11:12:16
214. View Comment

Everything is running.... But it doesn't send....
I tried all port numbers some just freeze ,others give error but COM3 works till the end but then gives me a timeout at step 3....I changed the center number and everything!
Please help it's REALLY REALLY urgent...
Thanks a Million!


View Tutorial          By: uu at 2009-04-09 18:10:13
215. View Comment

Thank you, Every thing is working fine...!!

Sandeep
try this code to find your system ports, and use available ports on sender.java

import javax.comm.*;
import java.util.Enumeration;

public class ListPorts {
public static void main(String args[]) {
Enumeration ports = CommPortIdentifier.getPortIdentifiers();
while (ports.hasMoreElements()) {
CommPortIdentifier port = (CommPortIdentifier)ports.nextElement();
String type;
switch (port.getPortType()) {
case CommPortIdentifier.PORT_PARALLEL:
type = "Parallel";
break;
case CommPortIdentifier.PORT_SERIAL:
type = "Serial";
break;
default: /// Shouldn't happen
type = "Unknown";
break;
}
System.out.println(port.getName() + ": " + type);
}
}
}

UU,

i suggest you to try the at commands at sender.java on hyperterminal.

may be issue with the SMSC number.

Thanks!!


View Tutorial          By: Purushothaman at 2009-04-10 07:18:38
216. View Comment

It works great,
my code looks like this:
import java.io.*;
import java.awt.*;
public class MainClass
{
public static void main (String args[]) throws IOException
{
SMSClient myObj = new SMSClient(-1);
myObj.sendMessage(\"58785381\",\"Hi\");
}
}
Thanx a lot William Alexander, you are the best!!!


View Tutorial          By: Anonymous at 2009-04-11 04:19:28
217. View Comment

hi purushothaman
thanks for your kind response.
the thing is that the ports which i am trying to are available in other programs. All the samples are working fine given in commapi. I want be sure that does it support usb port or not because i am using usb port as connection with my mobile phone.

will you please tell me that what were the steps you took to execute this code.
i have already mentioned my id still
sandeepdas.cse@gmail..com


View Tutorial          By: sandeep das at 2009-04-11 10:42:58
218. View Comment

Everything is running.... But it doesn't send.... I got this *** time out at step 6*** Exception. Can u please send me solution regarding this Issue..

View Tutorial          By: Amirtharaj at 2009-04-14 05:26:26
219. View Comment

Hai,
I have the same problem *** time out at step 6***,i am using a samsung SGH-D600E mobile as a gsm modem ,so pls can you help me


View Tutorial          By: Anitha at 2009-04-20 03:12:23
220. View Comment

Thanks for example..
But I have the same problem *** time out at step 6***. What does it mean? What kind is this problem?

If someon has an answer, please write to my email dobiliuke@msn.com I will be verry thankfull :)
Thanks in advance ;)


View Tutorial          By: Lina at 2009-05-02 13:23:33
221. View Comment

hi..
recipient: 9994852342 message: chadru
aSender..........Sender@130c19b
portId---------javax.comm.CommPortIdentifier@ca0b6
sending ...
Mon May 04 07:44:35 PDT 2009:Sender:*** time out at step 6***

I had rus this code..but above error is comming..
how to solve this error,pls very urgent . help me

by
chandru


View Tutorial          By: chandrasekaran at 2009-05-04 09:00:47
222. View Comment

Hi

Can you anyone please post me the entire code from sending the sms from PC including the steps to use it. Thanks in advance.

my id is damu_vl@yahoo.co.in


View Tutorial          By: Damodhar at 2009-05-06 04:12:33
223. View Comment

hello
plz tell me what can i do for sending sms form mobile to pc using java but not through GSM modem
plz tell me solution

thanks...


View Tutorial          By: mahipal at 2009-05-12 10:30:57
224. View Comment

Hi, I tried this code to send sms from my PC which is connected with mobile as GSM provider. Though i am getting time out error in step 2. what do i need to do? my mail id is jothinst@gmail.com

View Tutorial          By: Jothi at 2009-05-15 03:19:54
225. View Comment

hi,
i am safeer, i am try this program in my fedora 8, system,
but it will be time out, i am using my sony erricson K790i phone modem, and doesn't have driver for that.
actually the driver is needed for Fedora by default, if it's needed for where it get. Please help me.....
it is urgent


View Tutorial          By: Safi at 2009-05-22 22:32:04
226. View Comment

hi
Can you anyone please post me the entire code from sending the sms from PC through rs232 including the steps to use it. Thanks in advance.

my id is lifeofroses@yahoo.com


View Tutorial          By: yasmeen at 2009-05-25 02:42:44
227. View Comment

hi....I have a project, and need help please. I need the code to send messages from pc to cell..

View Tutorial          By: kelvin65 at 2009-05-25 10:03:07
228. View Comment

i don,t think so that it is sufficient to understand whole implementation to send sms in java ,so plz try your best to give us whole implmentation

View Tutorial          By: amit singh at 2009-05-27 06:54:20
229. View Comment

hi i m deepika mittal . i m working on the same project
please any body help me solve my problem,my all files have been compiled successfully.but on running i m finding the error:-


D:\sms-sending-program\sms>java SMSDemo

Exception in thread "Thread-0" java.lang.NoClassDefFoundError: javax/comm/Serial
PortEventListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at Sender.send(Sender.java:40)
at SMSClient.run(SMSClient.java:44)
at java.lang.Thread.run(Unknown Source)
plz call me

09336383679


View Tutorial          By: deepika Mittal at 2009-05-30 06:55:22
230. View Comment

Please help me send sms. I did everything , But now i getting error ---- Wed Jun 03 17:53:30 GMT+05:30 2009:taglib.Sender:*** time out at step 6*** like this

please give me solution for this.... please


View Tutorial          By: Prabhash V S at 2009-06-03 06:40:55
231. View Comment

i am getting a error when try this sms application like :-

Wed Jun 03 17:53:30 GMT+05:30 2009:taglib.Sender:*** time out at step 6***

please help and mail me at vsprabhash@gmail.com as soon as possible

I need to solve quikly...............


View Tutorial          By: Prabhash at 2009-06-03 06:45:26
232. View Comment

When I tried to run this code, I got time out *** time out at step 2***. I have verified using ListPorts.java . I found 2 serial ports are available(COM1 and COM3) in my machine. I have changed SerialParameters as private SerialParameters defaultParameters= new SerialParameters ("COM1",9600,0,0,8,1,0);
I have some doubts too.
1. Shall I need to change message center "private String csca="+6596845999";"?
2.Should My machine attached with any external modem/devices to send SMS?
3. What would be problem for this error? any port should be enabled or other problem? How to resolve thios problem ? Anyone pls help me ? Thanks in advance.


View Tutorial          By: Gandhi at 2009-06-04 06:20:48
233. View Comment

can any body help me how to execute this code ............

View Tutorial          By: nikhil at 2009-06-04 23:10:30
234. View Comment

can any body explain me how to execute the program step by step
my id is nikhil_muddasani@yahoo.com


View Tutorial          By: nikhil at 2009-06-04 23:56:11
235. View Comment

Where to put the smsc number. I am using vodafone number....
pleaze................tell me....very urgent....


View Tutorial          By: gopi at 2009-06-11 22:07:49
236. View Comment

Good morning!
I need help about how to configure this code for use a modem connected to Linux (CentOS) on /dev/ttyUSB1
Please help me!

Thanks in advice!


View Tutorial          By: alpha at 2009-06-14 03:20:41
237. View Comment

This program not running on my system so give some idea hw implement it if any one have solution plz help me my email id jayi4u@yahoo.com

View Tutorial          By: Ajay Kumar Barik at 2009-06-15 02:28:47
238. View Comment

What is SMSC and CSCA number? , in which JAVA file SMSC is declared.

View Tutorial          By: sampath at 2009-06-19 07:01:31
239. View Comment

hi , sending of sms is failing. Please help me in this regard. it's very urgent please.

View Tutorial          By: sudhakar at 2009-06-19 09:39:55
240. View Comment

Hi everyone.

Does anyone hir knows how to create an anti-theft for Mobile Phones (line Symbian Phones) using Java Netbeans Programming? Please give me sample of some code please? I don't have any idea. Please Please Please...


View Tutorial          By: Tomy at 2009-06-24 02:59:57
241. View Comment

how to downlow the different 5 files please !!

View Tutorial          By: Agnin at 2009-06-24 05:29:09
242. View Comment

Hello! May I know where is the "main" function of the program? They can be compiled but cannot run because there's no "main" function or "applet". Can anyone give me an answer, please? Thanks.

View Tutorial          By: Angelia at 2009-06-25 18:54:28
243. View Comment

It works , i had a lot of trouble but finally , i opened control panel , phone and modem options , and under modem tab , i saw the COM port to which my mobile was connected , and then i also changed the bit rate to maximum bit rate of the COM port and it worked :D

View Tutorial          By: Omer at 2009-06-30 06:05:17
244. View Comment

Hi!
Any body have code for recieving sms from mobile on PC?
I whould be very thanck full! if he/she like to share with me !
Thanks.


View Tutorial          By: Haseeb at 2009-07-01 04:59:13
245. View Comment

hi..!!
In the above code samples there is a line private String csca="+6596845999"; // the message center.
what is this means? Is that phone no. or modem no.


View Tutorial          By: chiru at 2009-07-03 03:29:18
246. View Comment

Hi got an error while executing :

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)


Could any one explain the steps to rectify the above issue ?

Waiting for replies ..

Naveen Chanda


View Tutorial          By: Hi, at 2009-07-06 01:09:35
247. View Comment

Hi,
Any body tell me how to these execute these 5 java files.
please..
thanks in adavance..


View Tutorial          By: mari at 2009-07-09 02:02:12
248. View Comment

Hello,
I want to send an mulitple sms using loops, however it didn't work for me? Can anyone post the answer to my questions?
Thanks.


View Tutorial          By: Fionna at 2009-07-10 01:02:11
249. View Comment

Hi,

I tried this script with nokia 6300 but its not working for me. Please help me. If possible please send your code to me to this mail gudivada213@gmail.com
i tried alot but didnt get your help will be most appreciable.

thanks,

sincerely,
sravan


View Tutorial          By: sravan at 2009-07-11 11:17:45
250. View Comment

Hello all,

I need the codes for sending multiple sms in one loops, I had try using a "for" loop and I can't seem to send muliple sms at 1 time. Does anyone know the solution to this problem?
My ID: fionnang1989@hotmail.com

Thanks in advance.


View Tutorial          By: Fionna at 2009-07-13 00:34:45
251. View Comment

Hi,

I am using the code files for sending SMS's using the COM port...
But, when I try and call the sendmessage() method from the file sender.java, it gives me an error that the port specified is already in use by some unknown windows application.

I tried to debug, and it takes me to the line portId.open in the file SerialConnection.java indicating that the port is being opened by the file..
I tried closing the port by reducing the time delay, but no use...

Please guide me in this as I understand that ur code works fine.....

Awaiting your reply.....

Utsav


View Tutorial          By: Utsav at 2009-07-14 01:29:06
252. View Comment

Hi,

I tried use this code:

package sms;

public class Main {

public static void main(String[] args) {
// TODO code application logic here
SMSClient sc = new SMSClient(0);
sc.sendMessage("505050702","Hello");
}

}

And I have error when tried to run in NetBeans and in console:
Exception in thread "main" java.lang.NoClassDefFoundError: sms/SMSClient (wrong name: SMSClient)

Pls. help
Yanosh


View Tutorial          By: Yanosh at 2009-07-16 05:19:38
253. View Comment

Hi,

How to implement this 5 files in a program ?

I tried this:
package sms;

/*
* @author Administrator
*/
public class Main {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
sms.SMSClient sc = new sms.SMSClient(0);
sc.sendMessage("505050702","Hello");
}

}

But I have error when run:
Exception in thread "main" java.lang.NoClassDefFoundError: sms/SMSClient (wrong name: SMSClient)


Please send me some working demo on yanosh@wp.pl

Thx


View Tutorial          By: Yanosh at 2009-07-16 06:00:14
254. View Comment

how to solve this problem

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: rajani at 2009-07-18 05:44:55
255. View Comment

HI,
I am getting this error
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver


I am using windows machine.please help me on this

palguna_vijay@yahoo.com
9730624399


View Tutorial          By: vijay bhanu at 2009-07-18 08:57:57
256. View Comment

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at nikhil.SerialConnection.openConnection(SerialConnection.java:70)
at nikhil.Sender.send(Sender.java:45)
at nikhil.SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
at nikhil.SerialConnection.openConnection(SerialConnection.java:87)
at nikhil.Sender.send(Sender.java:45)
at nikhil.SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Thread.java:595)


i am getting the message while running the code please help me my id is nikhil_muddasani@yahoo.com


View Tutorial          By: nikhil at 2009-07-22 05:58:55
257. View Comment

how to solve this while i am running the code it is giving

*** time out at step 6***


View Tutorial          By: nikhilmuddasani at 2009-07-23 04:32:31
258. View Comment

i want to Java coding's immediately

View Tutorial          By: vignesh at 2009-07-29 07:02:23
259. View Comment

Any Solution for below Error,

*** time out at step 6***


View Tutorial          By: Mazher at 2009-08-02 02:08:52
260. View Comment

hey i need a sms recieving code....

View Tutorial          By: Kishore at 2009-08-06 09:11:13
261. View Comment

hai.....people ..............

time out error.........Wed Jun 03 17:53:30 GMT+05:30 2009:taglib.Sender:*** time out at step 6***
please who have executed their code successfully send the code to this forum or please mail to sudhir41226@yahoo.com


View Tutorial          By: spartan at 2009-08-08 08:42:35
262. View Comment

I need full code for how to connnect pc to mobile using java coding..

View Tutorial          By: Vijay at 2009-08-23 23:38:05
263. View Comment

HI all,

I am not able to call SMSClient.java . can you please tell me the procedure to fix this issue. it will be better if you are sharing any same code. its urgent to implement in our project . Pls


View Tutorial          By: chinnadurai at 2009-08-26 23:58:54
264. View Comment

hi,
i got an exception :in thread main "noSuchMethodError" :main
can u help me plzzzzzzzzzzzz my mail id venugopalcse130@gmail.com


View Tutorial          By: N.Venugopal at 2009-08-27 05:25:07
265. View Comment

Hi all people...If i need to read a sms from the memory of the SIM card....how could be the code in java??

View Tutorial          By: Omarsi12 at 2009-09-06 17:11:15
266. View Comment

i need to use sms and to creat using java so it is will sample project for me.so thank u

View Tutorial          By: Abdulkerim at 2009-09-07 05:29:15
267. View Comment

Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Could not initialize class GeneralModules.SerialConnection
at GeneralModules.Sender.send(Sender.java:44)
at GeneralModules.SMSClient.run(SMSClient.java:38)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "main" java.lang.ExceptionInInitializerError
at GeneralModules.Sender.send(Sender.java:44)
at GeneralModules.SMSClient.run(SMSClient.java:38)
at GeneralModules.SMSClient.sendMessage(SMSClient.java:29)
at GeneralModules.Send.main(Send.java:16)
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: class SerialPortEventListener
at GeneralModules.SerialConnection.<clinit>(SerialConnection.java:14)
... 4 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)


Net beans is giving me the above mentioned errors. Would appreciate if someone could please help


View Tutorial          By: yash at 2009-09-16 06:12:32
268. View Comment

hi i want to send a message from my site to a phones with java code and also send mail to same message,can any one help me..

View Tutorial          By: dinesh at 2009-09-16 10:25:37
269. View Comment

Hello,
I have downloaded this code and its working fine..But if I send more than 255 characters its not working.How should I send sms with unlimited characters?


Regards,
P.Parthasarathi


View Tutorial          By: Parthasarathi at 2009-09-21 02:09:49
270. View Comment

Wed Sep 23 20:38:16 IST 2009:Sender:*** time out at step 2***


i m getting this error....




please any one solve this error....


View Tutorial          By: charan at 2009-09-23 09:13:22
271. View Comment

Please help me i am getting following error message

SerialConnectionException: Port currently owned by SMSConnector
at SerialConnection.openConnection(SerialConnection.java:90)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)

but i am not running any application

please tell me what is the problem


View Tutorial          By: Balaji at 2009-09-23 22:54:06
272. View Comment

I want to use the same code in c++,
Can anybody have any Idea how to convert this java code in c++.

Thanks


View Tutorial          By: vijay at 2009-09-26 00:47:02
273. View Comment

Can anybody tell the steps to go ahead with the example since I am a newbie.Plzzzzz..It would be very helpful if anyone gives the step by step instructions to run all the 5 programs...Its very urgent...thanks for the help...

View Tutorial          By: Sunpenn at 2009-10-12 03:57:58
274. View Comment

Its working perfectly for me.Thanks so much for providing such a wonderful code.

View Tutorial          By: Sunpenn at 2009-10-13 00:53:09
275. View Comment

please am in Nigeria, i need to know how to send a coded SMS through phone, what are the thing to get connected to first

View Tutorial          By: kay at 2009-10-15 03:06:10
276. View Comment

I used HyperTerminal directly to check whether modem sending sms. It's works fine. But implementing through java, instead of comm.jar file , i used RXTXcom.jar. I run through netbeans
IDE. Code compiled with no error. While at run time, process never code. Still in running process. Pls help me out from this problem.


View Tutorial          By: Pugal at 2009-10-15 03:38:08
277. View Comment

hai,
pls help me. i need a full java code with instruction - how to send and receive sms from mobile to PC, viceversa and how to connect GSM modem.

Pls help me

Regards,
Shan


View Tutorial          By: Shanalal Kasim at 2009-10-19 08:31:03
278. View Comment

This code is only for send sms? can it also alert when any sms received?

I still have timed out with this code :
Fri Oct 23 06:37:15 ICT 2009:sms.Sender:*** time out at step 2***
BUILD SUCCESSFUL (total time: 3 seconds)

Please send the code to my email, thanks


View Tutorial          By: abdul kadir at 2009-10-23 05:37:46
279. View Comment

hai i have downloaded the above sms source code i am using gsm modem for sending sms , i checked over hyper terminal ,sms was sucessfully delivered ,i have imported these code to my eclipse and added comm.jar file also there is no error in the code , while smsclient.java server throws "The requested resource (/sms/WEB-INF/classes/SMSClient.java) is not available." It would be very helpful if anyone gives the step by step instructions to run all the 5 programs...id is"arunram.prf@gmail.com"

View Tutorial          By: arunram at 2009-10-28 01:42:51
280. View Comment

hi
thanks for your code i wanted to know what changes should i make if i wish to send large content in sms becoz this code can send only upto 15-20 words.
for large messages it shows time out at step 6


View Tutorial          By: anshul at 2009-10-28 15:10:10
281. View Comment

i want ask whether how do i run the application?

View Tutorial          By: unknown at 2009-10-29 21:13:03
282. View Comment

Can anybody tell the steps to go ahead with the example since I am a newbie.Plzzzzz..It would be very helpful if anyone gives the step by step instructions to run all the 5 programs...Its very urgent...thanks for the help...my id is shikha_vit@yahoo.in

View Tutorial          By: shikha at 2009-11-03 10:42:34
283. View Comment

Hi,

Can anyone suggest a GSM Modem with which this code has worked fine on a Linux machine. Please let know urgently at archna.walecha@gmail.com


View Tutorial          By: Archna at 2009-11-06 03:23:14
284. View Comment

for me also The code gives the following exception :- Exception in thread "main" java.lang.NoSuchMethodError: main how to rectify it .... please mail me at raghu530@gmail.com and i am also trying to call this class file in my program,but it's not taking..so how can i do that...THANKS ...

View Tutorial          By: RaghunathaReddy.P at 2009-11-06 23:40:05
285. View Comment

Actually i had downloaded all the files but it throws errors can anyone tell me the steps for hoew to run the program for getting the corect output as a result..
please any one help...its urgent...

my mail Id is:
mypowers@rediffmail.com


View Tutorial          By: bornwithpowers at 2009-11-11 04:48:21
286. View Comment

i get exception NoSuchPortException. i tried on different pc but got the same. please somebody help me in this.

View Tutorial          By: harryjoy at 2009-11-22 05:52:48
287. View Comment

Hi Friends.... This code is working correctly with Nokia MObiles......... BUt Whenever I am executing this code with SONYERICSSON K550i Mobiles.. it shows
...................... time out at step 2.......................
Plz tell whether this code is Compatable to Sonyericsson also?
If anyone know it plz mail to kasi428@gmail.com.......... plz urgent......


View Tutorial          By: kasi at 2009-11-25 23:52:56
288. View Comment

Hi,
Pls help me.I need a full java code with instruction i.e how to send and receive sms from mobile to PC, viceversa and how to connect Nokia GSM modem.

Pls help me

Regards,
Karan


View Tutorial          By: karan at 2009-11-26 11:29:56
289. View Comment

i am getting following error

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)




plz suggest me.............it is ugent


View Tutorial          By: Pavan at 2009-11-26 21:31:22
290. View Comment

please help me how to run this program..

View Tutorial          By: khairie at 2009-12-01 22:43:08
291. View Comment

Hello all,
Please help me out. I want to create a website for mobile versions and i want to send messages from the mobile browser to other mobiles inbox.
So, can i use this code or not for creating this application?
Please reply
Thanks,
Best Regards,
Richa Bhatia


View Tutorial          By: Richa Bhatia at 2009-12-07 22:55:54
292. View Comment

I want to send a message using mobile browser to some other mobile inbox. Is that possible using this method or what changes i have to made in this program?

View Tutorial          By: Richa Bhatia at 2009-12-08 22:33:36
293. View Comment

I had downloaded all 5 the file
but i need steps to be taken for execution of code
any configuration needed

plz help me
dhananjay


View Tutorial          By: Dhananjay at 2009-12-09 10:20:30
294. View Comment

Hi guys
i am a beginer in java.. pls help me with the full working code..
i just tried these code..
n has encountered 52 errors...
pls help me out..
thanks in advance


View Tutorial          By: Jeevan at 2009-12-19 09:35:06
295. View Comment

how to compile and run the above program ? please anybody can help me ?
please send me the step by step method to run the above code
on this mail id samir_k2002@yahoo.com


View Tutorial          By: samir at 2009-12-22 00:42:52
296. View Comment

Could you please send me steps to execute the code .
Thanks in advance.


View Tutorial          By: Roshan at 2009-12-23 21:32:29
297. View Comment

I have a problem with PortInUseException. I wrote an application which enable to run AT commands to mobile and reading answers generated by my mobile. The problem is that when I compile my project with netbenas everything is working properly, but when I create jar file nothing occurs when i try to run my jar file. When i use console to open jar file i got exception PortInUseException. How can I manage it?
Thanks in advance for your replies:)


View Tutorial          By: robert at 2009-12-28 08:37:49
298. View Comment

hi ashraf , ramlak and all,
i m new here .I m workin on roject which involve sending and receiving sms from comp server , can any one tell complete stepwise process how to start , where/how to execute code , how to send sms ?

my mail ID is hemendrap1988@rediffmail.com
thank u in advance


View Tutorial          By: hemendra at 2009-12-28 21:59:34
299. View Comment

Can please send me codes to pass strings or text from mobile phone to pc? huhuhu i badly needed it please......... i had a little confusion on the compilation above...i got alot of errors. please i badly need anyone's help. Thank you in advance

this is my email: gbrago@yahoo.com

--Bryan--


View Tutorial          By: bryan at 2009-12-29 05:59:21
300. View Comment

can i connect mobile phone to usb port instead of this?

View Tutorial          By: Nevil at 2010-01-11 00:19:17
301. View Comment

Post your errors, so that others may help you my friend.

View Tutorial          By: yogesh at 2010-01-12 00:45:42
302. View Comment

This code rocks!! any one having any trouble should read thread carefully !!

View Tutorial          By: Ankur at 2010-01-22 06:37:10
303. View Comment

hi,
there is no main method in SMSClient.java file.then how can i run this file with out main method.
can any one tell me how can i successfully run this file.any one who had run this project successfully plsssss suggest me.
this is my email id

"ghostrider1255@gmail.com"


View Tutorial          By: raju at 2010-01-22 08:28:45
304. View Comment

hi

im trying to run this project and i keep geting this erro

<No main classes found>

! smsclient.SMSClient class wasn´t found in SMSClient project.

has anybody faced thesame problem?

please help please


View Tutorial          By: VoyRufino at 2010-01-26 10:03:11
305. View Comment

can any one plz tell me which java comm api do we need for this . and how do we connect the phone to system ..plz help bit urgent

View Tutorial          By: GAURAV MODI at 2010-01-29 02:12:13
306. View Comment

Can anybody tell me how to send and receive SMS using JAVA ME

View Tutorial          By: Bharat Lahori at 2010-02-04 07:14:19
307. View Comment

I an going to try this code.

View Tutorial          By: Bhagawati Prasad at 2010-02-06 02:45:10
308. View Comment

hi i m vinit jain. i m working on the same project
please any body help me solve my problem,my all files have been compiled successfully.but on running i m finding the error:-




Exception in thread "Thread-0" java.lang.NoClassDefFoundError: javax/comm/Serial
PortEventListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at Sender.send(Sender.java:40)
at SMSClient.run(SMSClient.java:44)
at java.lang.Thread.run(Unknown Source)
plz call me

plz mail me the solution on
engg.vinit@gmail.com


View Tutorial          By: vinit jain at 2010-02-09 12:16:01
309. View Comment

If I have reliance netconnect connected to my laptop, can I send SMS using this programme. Plz let me know the parameters that need to be modified in the programme.

View Tutorial          By: Shaik Allabakash at 2010-02-09 19:38:10
310. View Comment

Plz can someone help me, I copied the code above and pasted it, at least I did the pasting correctly. But when I try to compile, it gives me these error messages... Can someone help me out? my email address is dse90@aol.com. thanks

.\Sender.java:8: package javax.comm does not exist
import javax.comm.*;
^
.\SerialConnection.java:1: package javax.comm does not exist
import javax.comm.*;
^
.\SerialConnection.java:12: cannot find symbol
symbol: class SerialPortEventListener
public class SerialConnection implements SerialPortEventListener,
^
.\SerialConnection.java:13: cannot find symbol
symbol: class CommPortOwnershipListener
CommPortOwnershipListener {
^
.\SerialParameters.java:32: package javax.comm does not exist
import javax.comm.*;
^
.\SerialConnection.java:25: cannot find symbol
symbol : class CommPortIdentifier
location: class SerialConnection
private CommPortIdentifier portId;
^
.\SerialConnection.java:26: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
private SerialPort sPort;
^
.\SerialConnection.java:241: cannot find symbol
symbol : class SerialPortEvent
location: class SerialConnection
public void serialEvent(SerialPortEvent e) {
^
.\SerialConnection.java:70: cannot find symbol
symbol : variable CommPortIdentifier
location: class SerialConnection
portId = CommPortIdentifier.getPortIdentifier(parameters.getPortName());
^
.\SerialConnection.java:71: cannot find symbol
symbol : class NoSuchPortException
location: class SerialConnection
} catch (NoSuchPortException e) {
^
.\SerialConnection.java:87: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
sPort = (SerialPort)portId.open("SMSConnector", 30000);
^
.\SerialConnection.java:88: cannot find symbol
symbol : class PortInUseException
location: class SerialConnection
} catch (PortInUseException e) {
^
.\SerialConnection.java:139: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:169: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:181: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:252: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.DATA_AVAILABLE:
^
.\SerialConnection.java:276: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.BI:
^
.\SerialParameters.java:54: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
.\SerialParameters.java:55: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
.\SerialParameters.java:56: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.DATABITS_8,
^
.\SerialParameters.java:57: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.STOPBITS_1,
^
.\SerialParameters.java:58: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.PARITY_NONE );
^
.\SerialParameters.java:216: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_5;
^
.\SerialParameters.java:219: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_6;
^
.\SerialParameters.java:222: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_7;
^
.\SerialParameters.java:225: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_8;
^
.\SerialParameters.java:243: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_5:
^
.\SerialParameters.java:245: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_6:
^
.\SerialParameters.java:247: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_7:
^
.\SerialParameters.java:249: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_8:
^
.\SerialParameters.java:270: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_1;
^
.\SerialParameters.java:273: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_1_5;
^
.\SerialParameters.java:276: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_2;
^
.\SerialParameters.java:294: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_1:
^
.\SerialParameters.java:296: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_1_5:
^
.\SerialParameters.java:298: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_2:
^
.\SerialParameters.java:319: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_NONE;
^
.\SerialParameters.java:322: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_EVEN;
^
.\SerialParameters.java:325: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_ODD;
^
.\SerialParameters.java:343: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_NONE:
^
.\SerialParameters.java:345: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_EVEN:
^
.\SerialParameters.java:347: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_ODD:
^
.\SerialParameters.java:362: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_NONE;
^
.\SerialParameters.java:365: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_XONXOFF_OUT;
^
.\SerialParameters.java:368: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_XONXOFF_IN;
^
.\SerialParameters.java:371: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_RTSCTS_IN;
^
.\SerialParameters.java:374: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_RTSCTS_OUT;
^
.\SerialParameters.java:376: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_NONE;
^
.\SerialParameters.java:387: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_NONE:
^
.\SerialParameters.java:389: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_XONXOFF_OUT:
^
.\SerialParameters.java:391: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_XONXOFF_IN:
^
.\SerialParameters.java:393: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_RTSCTS_IN:
^
.\SerialParameters.java:395: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_RTSCTS_OUT:
^
53 errors

Tool completed with exit code 1


View Tutorial          By: Dse90 at 2010-02-10 04:28:34
311. View Comment

hi..it's very nice..can you send me the version for recieve sms?

my mail is bellasituazione@hotmail.it


View Tutorial          By: daniel81 at 2010-02-11 09:19:36
312. View Comment

hi

View Tutorial          By: raj at 2010-02-12 02:48:09
313. View Comment

Hi everyone!
Pls I dnt know hot to configure java communication API (javax.comm) on ubuntu linux. can some one help me? Its very urgent pls.


View Tutorial          By: DSE90 at 2010-02-12 12:05:57
314. View Comment

Sir I want to information about "how to send sms using Java Api ".
please send information about sending sms using java api.


View Tutorial          By: murthy at 2010-02-17 07:15:18
315. View Comment

i need help in java

View Tutorial          By: arjun tanwar at 2010-02-17 20:58:55
316. View Comment

hi all !

This is the error im getting. Pls help..


Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at sms.SerialConnection.openConnection(SerialConnection.java:72)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at sms.SerialConnection.openConnection(SerialConnection.java:89)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)

I am using windows XP sp2 opereating system
Please But the error message for Solaris Port
If any friend knows about the solution of this problem please
e-mail me at

reachajitsingh@rediffmail.com

Thanks in advance


View Tutorial          By: Ajit at 2010-02-17 23:09:47
317. View Comment

Hi Friends.... Can you please send the working version of the java programs to sent the sms
If anyone knows it plz mail to shafishadabv@yahoo.com.......... Thanks in advance


View Tutorial          By: shafi at 2010-02-18 08:28:49
318. View Comment

HI I've been gettin this problem in STEP 6...How do I need to do to solve it!!!please someone let me know...to omarsito12@gmail.com...thanks a lot....God bless u!!!

View Tutorial          By: Omar_sito12 at 2010-02-22 08:46:18
319. View Comment

Can any one tell me whether to add any external jar files?If yes please provide me the related websites...Thanks..

View Tutorial          By: Abhi at 2010-02-23 05:25:29
320. View Comment

Can anybody explain me what are the minimum settings we need to do before running this code.

View Tutorial          By: Ramesh at 2010-02-25 10:28:42
321. View Comment

this code is very and help in our project BUT
where is main class in SMSClient.java file There is no main class in above File pls give me that file to Help in My project pls pls pls pls...............


View Tutorial          By: bhamre sandeep at 2010-02-28 03:02:53
322. View Comment

how to solve this problem

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


if anybody got this then mail me at
bhamresandeep@rediffmail.com


View Tutorial          By: bhamre sandeep at 2010-02-28 04:18:36
323. View Comment

Please guys i need sms.zip. I tried SMS.RAR but all files are corrupted. Thanks a lot.

View Tutorial          By: Waseem at 2010-03-06 15:48:40
324. View Comment

how we can store a pdf file into database
how we can get information from pdftables


View Tutorial          By: neelima at 2010-03-10 23:46:52
325. View Comment

plz wait for your solution

View Tutorial          By: Desai Rajesh at 2010-03-11 22:00:32
326. View Comment

I need JSP Code to send SMS to mobile.

View Tutorial          By: nana at 2010-03-12 22:43:22
327. View Comment

Hello,

I got an error like (Wed Mar 17 17:24:48 GMT+05:30 2010:Sender:==* time out at step 2*==).

How can i rectified this. I copied all the components. but still i cant able to execute.

kglnsify@gmail.com


View Tutorial          By: narayanan at 2010-03-17 05:56:21
328. View Comment

Plz help me......its urgent
i need a code to get the sender mobile no i.e. the SIM which is currently use in GSM MODEM so that i replace that mobile no. with a particular string as... "MyJobs Limited"
thanks in advance


View Tutorial          By: Nisha at 2010-03-22 00:38:42
329. View Comment

Can anybody help me to send the code for email sending.

please.


View Tutorial          By: satendra at 2010-03-23 02:46:18
330. View Comment

Can any budy plz send me a source code of Sending a message.

View Tutorial          By: vilas at 2010-03-23 20:38:08
331. View Comment

I am doing a project to for sending sms from the server.I feel difficult to develop plz help me

View Tutorial          By: visalakshi at 2010-03-30 20:55:50
332. View Comment

does this code work with netbeans. if not can anyone of u help me by sending me the code for sendin SMS thru netbeans plz its urgent

View Tutorial          By: Alton at 2010-04-02 22:36:57
333. View Comment

Hi, please do you know how can i use a cel connected to PC for send a SMS from another cel to start an aplication? thanks

View Tutorial          By: nobody at 2010-04-06 20:25:54
334. View Comment

the below error can be solve by another version comm.jar because it contanin solaris drivers

http://dl.smslib.org/javacomm20-win32.zip

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at sms.SerialConnection.openConnection(SerialConnection.java:72)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at sms.SerialConnection.openConnection(SerialConnection.java:89)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)


View Tutorial          By: prasad raju v at 2010-04-08 04:20:10
335. View Comment

The following exception are raised in send sms in java application..can u help me to slove this problem?..

Thank you..

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SMS.SerialConnection.openConnection(SerialConnection.java:87)
at SMS.Sender.send(Sender.java:55)
at SMS.SMSClient.run(SMSClient.java:50)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at SMS.SerialConnection.openConnection(SerialConnection.java:104)
at SMS.Sender.send(Sender.java:55)
at SMS.SMSClient.run(SMSClient.java:50)
at java.lang.Thread.run(Thread.java:619)


View Tutorial          By: Vikram Subbiah at 2010-04-12 02:09:36
336. View Comment

HI can you send "send sms" program throgh java,,,the above code doesn't work for me... help me please ma Mail Id:nishanth2059@gmail.com

View Tutorial          By: Nishanth Chandran Poduval at 2010-04-15 00:31:33
337. View Comment

pls send to me comm.jar file , its not in sun site available in windows

View Tutorial          By: sanjeewa at 2010-04-18 23:17:37
338. View Comment

Hi I properly placed the Comm api settings,i have an error javax.comm.NoSuchPortException.
plz send me the steps to run properly.Thanks.My mail id:manib4u@gmail.com


View Tutorial          By: Muthumani at 2010-04-19 05:24:17
339. View Comment

I am using my NOKIA 6630 via usb connection, running the java program i got the following error message:

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)


View Tutorial          By: muhin at 2010-04-19 21:37:02
340. View Comment

Hi,
I am getting this exception..My modem is connected to COM3 port. Please tell me..how to rectify it..It's urgent..thanx
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: puneet at 2010-04-22 10:22:18
341. View Comment

I am using my samsung s5233 via usb connection, running the java program i got the following Exception message:

NoSuchPortException
at CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:194)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:46)

can u help me to slove this problem?..
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:46)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: Puneet at 2010-04-23 06:14:28
342. View Comment

Can anyone post the steps to implement everything from start to finish? I see so many of the same problems without any solutions. Cmon guys, help your fellow coders out!
masserym@wit.edu


View Tutorial          By: Matt at 2010-04-29 14:47:11
343. View Comment

There are so many posts about the same problem (i have the NoSuchPortException error too), but barely any solutions. And the ones that are there don't explain everything. If anyone has found a way, can you please send me how to implement this code from start to finish? Thanks in advance
masserym@wit.edu


View Tutorial          By: Matt at 2010-04-30 09:52:16
344. View Comment

How to send to multiple mobiles at a time

View Tutorial          By: rakesh at 2010-04-30 10:33:51
345. View Comment

i need the code

View Tutorial          By: C.Ajith Franklin at 2010-05-05 06:04:40
346. View Comment

I am using my NOKIA 2700 classic via blutooth connection, running the java program i got the following error message:
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at sendsms.SerialConnection.openConnection(SerialConnection.java:75)
at sendsms.Sender.send(Sender.java:46)
at sendsms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at sendsms.SerialConnection.openConnection(SerialConnection.java:94)
at sendsms.Sender.send(Sender.java:46)
at sendsms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)

plz help me how to avoid this exception and how to send succesful message...............


View Tutorial          By: Raheela at 2010-05-06 03:11:36
347. View Comment

Hi Ramlak

First of all thanks for ur code it is working fine for me .

I have one question Can i use it in my web application ? If yes then where i connect this gsm modem . Currently i am sending mail containing phone Numbers and message body then i receive the mail and get the information and then send s.m.s from my local box.
Please Help me .
And can u give me the receive S.M.S program.
My emailId=vikass27@gmail.com

vikas sharma


View Tutorial          By: Vikas sharma at 2010-05-08 01:09:31
348. View Comment

HI can you send "send sms" program throgh java,,,the above code doesn't work for me... help me please ma Mail Id:singh.manav77@gmail.com

View Tutorial          By: manav at 2010-05-09 12:54:52
349. View Comment

I am using my NOKIA 2700 via blutooth connection. The following exception are raised in send sms in java application..can u help me to slove this problem?..
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at sms.SerialConnection.openConnection(SerialConnection.java:72)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at sms.SerialConnection.openConnection(SerialConnection.java:89)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
BUILD SUCCESSFUL (total time: 0 seconds)


View Tutorial          By: Rahi at 2010-05-11 04:39:33
350. View Comment

Hi,

I alos faced the same problem of javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier and resolved by downloading the javacomm20-win32.zip file from this site http://www.filewatcher.com/m/javacomm20-win32.zip.272690.0.0.html . Then i got another error like (Wed Mar 17 17:24:48 GMT+05:30 2010:Sender:==* time out at step 2*==). which is resolved by using proper csca no (Message Center No for the respective GSM Service Provider)
and finally i am able to use the above programm to send sms from java code. Thanks a lot for the above code provider. I hope this explanation will help others who are facing the same problem.


View Tutorial          By: prasanna kumar v at 2010-05-15 02:55:59
351. View Comment

works like a charm, though i didn't understand why SMSClient and Sender classes implemented runnable. in order to find the correct port on which my phone was connected i used 'floAt's Mobile Agent'; phone was actually available on several ports for different purposes but only one of them worked for serial connection.

View Tutorial          By: primus at 2010-05-19 04:46:18
352. View Comment

hi ,
this is prakash and i want to know how java comm api intalled in my system.i have downloaded comm api from sun. but now problem is that how it store in javax directory.
actualy a error occred

SMSClient.java:578: class,interface and enum expected
import.javax.coom.*;

1 error

can anybody help me to solve it
plz help as soon as possible

i m waiting


View Tutorial          By: prakash at 2010-05-24 07:27:46
353. View Comment

Hi, I need the complete working code for sending and recieving sms using java..
plz explain it with stap by stap

how i use it and how i build a program for it

plz its argent 4 me

prakash


View Tutorial          By: prakash at 2010-05-24 09:14:59
354. View Comment

hi..dud.......
please help me in my project as possible i am doing a contact book in j2me................... but i am not getting can you send me the code to my email please.............


View Tutorial          By: amar usakoyal at 2010-05-25 03:31:16
355. View Comment

Hi
after i dl the javacomm20-win32.zip and follow the place the to put
win32com.dll in /bin
comm.jar and javax.comm.properties /lib
and classpath

but i still get the error
Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading driver com.sun.comm.Win32Driver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at sms.SerialConnection.openConnection(SerialConnection.java:71)
at sms.Sender.send(Sender.java:45)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)
sms.SerialConnectionException
at sms.SerialConnection.openConnection(SerialConnection.java:76)
at sms.Sender.send(Sender.java:45)
at sms.SMSClient.run(SMSClient.java:52)
at java.lang.Thread.run(Thread.java:619)

isit bcos i using win7 and the win32com.dll is only for xp and i using a usb-to-serial cable


View Tutorial          By: jm at 2010-05-31 01:42:28
356. View Comment

Guys,

Please explain detail steps who ever had solved the problem(s).

Steps:
How to connect the phone interface.
What are all the system configuration(s) we have to make for Windows,solaris and for linux.
How to excute the programs.


If i solve the problem will post it for you guys.

Thanks,
Parthasarathy Balakrishnan


View Tutorial          By: Parthasarathy at 2010-06-02 08:13:12
357. View Comment

What is the use of "SMSConnector" in this? Does it need to be changed ??
The below errors come while compliling...PLEASE help me out...I need to submit my project in 3 days...and anyhow i need to solve this error...PLEASE GUIDE me through this...

C:\sms\sms\src\smsPackage>javac SerialConnection.java
SerialConnection.java:22: cannot find symbol
symbol : class SerialParameters
location: class smsPackage.SerialConnection
private SerialParameters parameters;
^
SerialConnection.java:51: cannot find symbol
symbol : class SerialParameters
location: class smsPackage.SerialConnection
public SerialConnection(SerialParameters parameters) {
^
SerialConnection.java:65: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
public void openConnection() throws SerialConnectionException {
^
SerialConnection.java:155: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
public void setConnectionParameters() throws SerialConnectionException {
^
SerialConnection.java:92: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException(e.getMessage());
^
SerialConnection.java:101: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
} catch (SerialConnectionException e) {
^
SerialConnection.java:113: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException("Error opening i/o streams");
^
SerialConnection.java:128: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException("too many listeners added");
^
SerialConnection.java:176: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException("Unsupported parameter");
^
SerialConnection.java:181: setFlowControlMode(int) in javax.comm.SerialPort cann
ot be applied to (boolean)
sPort.setFlowControlMode( (parameters.getFlowControlIn())
^
SerialConnection.java:184: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException("Unsupported flow control");
^
11 errors


i guess there is some error related to SerialPort...how to check it?
I have connected E71 as a GSM Modem..it supports internet so...And when i try to QueryModem in properties of Modem-Port in Control Panel...they say that the port is used by some application...but i have not opened any IE or any other window using the same port...

Reply soon...


View Tutorial          By: Mudra at 2010-06-04 15:04:55
358. View Comment

I get this error:
Can someone please help me???


Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at javaapplication3.SerialConnection.openConnection(SerialConnection.java:71)
at javaapplication3.Sender.send(Sender.java:46)
at javaapplication3.SMSClient.run(SMSClient.java:42)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at javaapplication3.SerialConnection.openConnection(SerialConnection.java:88)
at javaapplication3.Sender.send(Sender.java:46)
at javaapplication3.SMSClient.run(SMSClient.java:42)
at java.lang.Thread.run(Thread.java:619)
You can email me at
billahill@gmail.com
Thanks,


View Tutorial          By: Carlos at 2010-06-14 02:42:53
359. View Comment

guys i am getting this error..plz tell me the solution 2 this


C:\sms>java DemoSms
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: javax/comm/Serial
PortEventListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at Sender.send(Sender.java:42)
at SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.comm.SerialPortEventListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 15 more


View Tutorial          By: Ajit at 2010-06-17 07:38:51
360. View Comment

Hi all, i have tried above code, but am getting following error


javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source) java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source) Getting above error

but am in urgent need of working condition code , if u help me out ,

i'll be thankfull to you,
regards
swathi


View Tutorial          By: swathi at 2010-06-24 05:18:28
361. View Comment

I have downloaded all the files
SMSClient.java
Sender.java
SerialConnection.java
SerialConnectionException.java
SerialParameters.java

I put these files in the same directory
when I am trying to run its giving 52errors
as below
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:1: package javax.comm does not exist
import javax.comm.*;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:12: cannot find symbol
symbol: class SerialPortEventListener
public class SerialConnection implements SerialPortEventListener,
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:13: cannot find symbol
symbol: class CommPortOwnershipListener
CommPortOwnershipListener {
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:32: package javax.comm does not exist
import javax.comm.*;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:25: cannot find symbol
symbol : class CommPortIdentifier
location: class SerialConnection
private CommPortIdentifier portId;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:26: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
private SerialPort sPort;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:241: cannot find symbol
symbol : class SerialPortEvent
location: class SerialConnection
public void serialEvent(SerialPortEvent e) {
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:70: cannot find symbol
symbol : variable CommPortIdentifier
location: class SerialConnection
portId = CommPortIdentifier.getPortIdentifier(parameters.getPortName());
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:71: cannot find symbol
symbol : class NoSuchPortException
location: class SerialConnection
} catch (NoSuchPortException e) {
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:87: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
sPort = (SerialPort)portId.open("SMSConnector", 30000);
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:88: cannot find symbol
symbol : class PortInUseException
location: class SerialConnection
} catch (PortInUseException e) {
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:139: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:169: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:181: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:252: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.DATA_AVAILABLE:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialConnection.java:276: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.BI:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:54: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:55: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:56: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.DATABITS_8,
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:57: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.STOPBITS_1,
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:58: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.PARITY_NONE );
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:216: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_5;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:219: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_6;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:222: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_7;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:225: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_8;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:243: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_5:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:245: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_6:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:247: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_7:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:249: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_8:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:270: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_1;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:273: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_1_5;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:276: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_2;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:294: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_1:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:296: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_1_5:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:298: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_2:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:319: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_NONE;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:322: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_EVEN;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:325: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_ODD;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:343: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_NONE:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:345: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_EVEN:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:347: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_ODD:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:362: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_NONE;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:365: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_XONXOFF_OUT;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:368: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_XONXOFF_IN;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:371: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_RTSCTS_IN;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:374: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_RTSCTS_OUT;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:376: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_NONE;
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:387: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_NONE:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:389: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_XONXOFF_OUT:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:391: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_XONXOFF_IN:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:393: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_RTSCTS_IN:
^
C:\Documents and Settings\sanjay\My Documents\Downloads\SerialParameters.java:395: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_RTSCTS_OUT:
^
52 errors

please mail me complete solution at sanjay.sirohee@gmail.com
Thanks,


View Tutorial          By: Sanjay at 2010-06-29 04:48:16
362. View Comment

Hi all
I connected my mobile with pc instead of GSM modem. I executed given programs. I am not getting any error. But sms is not delivered to recipient. Can any one help? Thanks in advance


View Tutorial          By: sruthy at 2010-07-07 03:44:27
363. View Comment

hi....
i want to send sms to any mobile by connecting a mobile to my pc using bluetooth....
can anybody suggest changes in the above code OR
can anybody send me the required code to my id....
prerna.arya22@gmail.com
i will be highly thankful....
i need this........


View Tutorial          By: prerna at 2010-07-09 20:15:48
364. View Comment

Hi,
i executed this program successfully in my pc but im getting empty message in destination mobile no.... can anyone help to get out of this problem...... asap


View Tutorial          By: Praveen at 2010-07-14 01:05:37
365. View Comment

hi all,

i successfully executed the above program using my Motorola A810 as a GSM modem. my problem is my reciepient is receiving empty message whenever i execute the above program.


View Tutorial          By: praveen at 2010-07-14 04:47:41
366. View Comment

Good stuff.

View Tutorial          By: flazwbooks at 2010-07-18 05:50:50
367. View Comment

Hi
I can able to execute the above pgm successfully in windows xp. But its not working in windows vista. its getting time out at step 2. can any one help


View Tutorial          By: sruthy at 2010-07-23 03:29:39
368. View Comment

can any one plz send me the message passing coding which is used in mobiles?
thank u..
my email id sowmya.veeramani@gmail.com


View Tutorial          By: sowmya at 2010-08-02 04:57:22
369. View Comment

Hello
I need some one send me runnable code because I have to exception and i don't Know how solve the both
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at sendsms.SerialConnection.openConnection(SerialConnection.java:72)
at sendsms.Sender.send(Sender.java:45)
at sendsms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
sendsms.SerialConnectionException
at sendsms.SerialConnection.openConnection(SerialConnection.java:76)
at sendsms.Sender.send(Sender.java:45)
at sendsms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
can any one help me urgent
regrades
Ahmed Ghazey


View Tutorial          By: Ahmed Ghazey at 2010-08-09 01:55:48
370. View Comment

Can anybody send full code for sending and receiving sms to jayapalsahadevan@gmail.com this id.

Thanks in advance


View Tutorial          By: Jayapal at 2010-08-12 11:41:38
371. View Comment

Hii.... We are B.Tech 4th year students. We are working on a major project based on SMS. Could you plz send me the full code for sending sms thru pc using java language.We need it very urgently. Thanks in advance .

View Tutorial          By: Shipra Malik at 2010-08-17 03:32:34
372. View Comment

Thanks for the above code. I am not sure whether the above code works or not but before testing i would be happy if i get the list of hardware requirements for running the program too.

Thanks


View Tutorial          By: Koolkabin at 2010-08-20 01:11:27
373. View Comment

hi!
please tell how i got the java comm api.
plz send the link to download the java comm api
thanks

regards
suresh
sur.203131@gmail.com


View Tutorial          By: suresh at 2010-08-22 03:29:06
374. View Comment

Can anybody send me the java full code for sending and receiving sms to davidhe@live.com.au

Thanks in advance


View Tutorial          By: David at 2010-08-22 22:57:38
375. View Comment

To RUN this code, follow below steps

1 Add main() method in code.

public static void main(String args[]) {
SMSClient a = new SMSClient(1); //
// arg 1 - send number
// arg 2 - Message
a.sendMessage("+91111100", "11111");
}

2 - Download [from net] javax.Comm jar (javax.comm.NoSuchPortException )
comm.jar
win32com.dll
javax.comm.properties
Make sure all 3 file should be in same folder

3 - Configure Message center
Message Center number is available on mobile, check following options
Goto Messaging > Options > Settings > Text message > Service centre
Update the number on class.Sender.csca [variable]


View Tutorial          By: Ajay at 2010-09-04 03:01:24
376. View Comment

hello everyone

i want to implement this application on a windows7 platform.
Can anyone help me out by guiding me steps hoe to implement it to send messages from my PC.
plz reply ASAP either here or at my id prateek_kaushik89@yahoo.com
thanks


View Tutorial          By: Prateek at 2010-09-05 00:40:57
377. View Comment

Plse Send me The Code For Sms Application to My Mail Id bsantu.kumar@gmail.com

View Tutorial          By: Santoshb at 2010-09-08 07:08:55
378. View Comment

Hello guys, I'm developing java program to send SMS messages. I have USB GSM modem should I deal with it in the same manner?

Thanks


View Tutorial          By: Rania at 2010-09-08 09:04:47
379. View Comment

Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading driver com.sun.comm.Win32Driver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)

I am getting this error even though i have placed

comm.jar should be placed in:


%JAVA_HOME%/lib

%JAVA_HOME%/jre/lib/ext

win32com.dll should be placed in:


%JAVA_HOME%/bin

%JAVA_HOME%/jre/bin

%windir%System32

javax .comm.properties should be placed in:


%JAVA_HOME%/lib

%JAVA_HOME%/jre/lib

dll,jar,properties in above manner.
Pls any one help on that.
Thanks in Advance.


View Tutorial          By: A.Balaji at 2010-09-13 00:15:48
380. View Comment

Could anyone please forward me the working version of sending and receiving SMS to the following email: mchste009@uct.ac.za

View Tutorial          By: Stephen Machipi at 2010-09-13 06:41:08
381. View Comment

is this code applicable if I used USB GSM Modem? and if it is ok, what are the required modifications that should be made?

View Tutorial          By: Rania at 2010-09-14 12:33:15
382. View Comment

place both comm.jar and javax.comm.properties in lib folder and place Win32com.dll in bin folder and see how it goes with you. I hope I could help.

Good Luck


View Tutorial          By: Rania at 2010-09-14 19:52:49
383. View Comment

Sorry Actually i used previous version of comm.jar file

Now i used Latest version which have win32Driver Class

Now this Code is working for me

Thaks a lot to author who given this code
thank you very much


View Tutorial          By: A.Balaji at 2010-09-15 02:44:55
384. View Comment

hi...
how can i get this 5 files...of java........plzz help me..


View Tutorial          By: loveu at 2010-09-19 12:04:10
385. View Comment

pls help me how to solve the timeout problem
im getting timeout at step3 ....
pls tell me some suggestions i ll be thankful to u


View Tutorial          By: nisha at 2010-09-20 22:29:17
386. View Comment

click the line which is shown in this site:

Download Send SMS Java sample program files


View Tutorial          By: hi to get 5 files at 2010-09-22 03:10:36
387. View Comment

java.lang.NoSuchMethodError: main


can someone help here? this error shows up in the SMSClient class whenever I try to run it after compiling.

please post or send it to my email.

strykr1.mark@gmail.com
Thanks!


View Tutorial          By: mark at 2010-09-27 03:46:48
388. View Comment

Hi All,

This code is working fine in windows
but my requirement is i have to send sms using OS as linux

So, pls can any one guide me , how to make this code work with linux.

How to AT commands works in linux i dont know
pls help me on those issues.

I am new to Linux,so i am suffering lot , i will try my best
but if any one already did it in linux pls help me.

Thanks in Advance.


View Tutorial          By: A.Balaji at 2010-09-27 04:40:38
389. View Comment

Thnx. Very Useful Code...

View Tutorial          By: Ankur Pandya at 2010-09-27 05:14:35
390. View Comment

hi
thanks for the above code
Anyone can u help me in above code i am getting
TIMEOUT problem how to resolve this
Please help me.................
i asked many people no one is replying please consider this
Thanks to prabash
thanks in advance


View Tutorial          By: mjnanthini at 2010-09-29 00:59:01
391. View Comment

hi MR. A.Balaji
can u help me how you have run the above code in windows
i need your help
im getting timeout problem,how you resolved this pls guide me i ll be thankful to u
thanks in advnce


View Tutorial          By: mjnanthini at 2010-10-03 23:04:35
392. View Comment

hi, IF ANY ONE REALLY INTRESTED TO RUN THIS PROGRAM . THEN I SUGGEST YOU USE "JMS" IT IS BETTER.

View Tutorial          By: sunil kumar sahu at 2010-10-09 11:50:56
393. View Comment

Hi,
I run the program on windows (connecting to a phone through bluetooth) and I had the sane errors but I managed to solve the problems as follows:
1. javax.comm.* is not supported on windows anymore and I replaced it with this jar: rxtx-2.1-7-bins-r2.zip downloaded from http://rxtx.qbang.org/wiki/index.php/Download
2. edited the code to for the new jar: I added import gnu.io.*; in the SerialParameters.java file
3. I edited the Sender.java file:
- set the message center number and the port
- I modified public void run() function to change the AT commands:
public void run(){

boolean timeOut=false;
long startTime=(new Date()).getTime();



while ((step <7) && (!timeOut)){
// log(""+((new Date()).getTime() - startTime);
//check where we are in specified delay
timeOut=((new Date()).getTime() - startTime)>delay;

//if atz does not work, type to send cntrlZ and retry, in case a message was stuck
if (timeOut && (step==1)) {
step=-1;
mySerial.send( ""+cntrlZ);
}

//read incoming string
String result= mySerial.getIncommingString() ;

// log ("<- "+result+"\n--------");
int expectedResult=-1;

try{
//log ("Step:"+step);

switch (step){
case 0:

mySerial.send("AT");
delay=LONG;
startTime=(new Date()).getTime();
break;
case 1:
expectedResult=result.indexOf("OK");

//log ("received ok ="+expectedResult);
if (expectedResult>-1){
mySerial.send("AT+CMGF=1");
startTime=(new Date()).getTime();
}else{
step=step-1;
}
break;
case 2:
expectedResult=result.indexOf("OK");

// log ("received ok ="+expectedResult);
if (expectedResult>-1){
mySerial.send("AT+CMGW=\""+recipient+"\"");
startTime=(new Date()).getTime();
}else{
step=step-1;
}

break;
case 3:
expectedResult=result.indexOf(">");

// log ("received ok ="+expectedResult);
if (expectedResult>-1){
mySerial.send(message+cntrlZ);
startTime=(new Date()).getTime();
}else{
step=step-1;
}
delay=VERYLONG;//waitning for message ack

break;

case 4:
//log ("received ="+result.toString());
expectedResult=result.indexOf("+CMGW:");
//read message number
if (expectedResult>-1){
int n=result.indexOf("+CMGW:");
result=result.substring(n+7);
n=result.indexOf("\n");
status=0;
messageNo=Long.parseLong(result.substring(0,n).trim() );
mySerial.send("AT+CMSS="+messageNo);
startTime=(new Date()).getTime();
log ("sent message no:"+messageNo);
}else{
step=step-1;
}

break;
}
step=step+1;

aThread.sleep(100);

}catch (Exception e){
e.printStackTrace();
}
}

Try the AT commands with HyperTerminal to check if it works, this is how I discovered the problems.

Hope it will help you.


View Tutorial          By: Razvan at 2010-10-13 06:04:24
394. View Comment

plz i want afull code to send sms to mobile included my university news and this news will be refrished always plz can you help me

View Tutorial          By: alosh at 2010-10-17 08:39:25
395. View Comment

hiii
i m doing my final year project on sms based system. iplz tell me how to run the code. i download api jar file bt onwords whr to put it.when i compile code it gives me error. Also plz mail me java code for sending sms from pc mobile using bluetooth. Also i want to know hw can v use mobile as a gsm modem


View Tutorial          By: jiya at 2010-10-21 07:58:24
396. View Comment

Hi Sir,
Thank You so much for your code.I tried to run this code igot some error while running.These are the errors
portId.addPortOwnershipListener((CommPortOwnershipListener).this);
portId.removePortOwnershipListener.this;
^
i hava already imported javax.comm packege.can you please help me to solve this error.pls reply to my e-mail id.
kareena.will@gmail.com


View Tutorial          By: kareena at 2010-10-21 23:26:37
397. View Comment

could you plz tell me how to run this all programs??? m using eclipse IDE so tell me the step by step procedure

View Tutorial          By: abhishek at 2010-10-27 00:08:57
398. View Comment

I have loaded allthe 5 java files.But how to implement in the program ? Plz tell me.It is very urgent.If any body can send me complete working code of sending messege . And it not contain any main method in all five file .PLZ SEND IT MY EMAIL
jinjala.bharat@gmail.com


View Tutorial          By: Bharat at 2010-11-01 23:28:14
399. View Comment

hi every body i want full java code to send message to mobile. i am using edit plus. pls pls guide me...it's so urgent

View Tutorial          By: Ashray P Shetty at 2010-11-09 04:33:45
400. View Comment

Nice code. It is working Fine.Thnx

View Tutorial          By: Tapasya Shukla at 2010-11-12 06:32:45
401. View Comment

Is there a code that can hide smses, when they enter, it picks them before they enter the inbox and puts them in a different folder which is password protected for security? PLease help guys.

View Tutorial          By: James at 2010-11-18 03:32:56
402. View Comment

Hi every body.. I accomplished the task of sending message successfully in netbeans glassfish n tomcat...
If any body needs any assistance u r welcome. i ll give full working code and some procedures i ll tell that you should follow and you are done.
i kindly request all to help me regarding the same task to be performed in ANDROID.


View Tutorial          By: Ashray P Shetty at 2010-11-18 06:25:54
403. View Comment

hi Ashray P Shetty,
I want assistance in the task of sending message successfully in netbeans 6.7. I am having very basic knowledge about java.
thus pls help me in step by step

thanks .


View Tutorial          By: Shabbir Manasawala at 2010-11-19 02:02:43
404. View Comment

hi Ashray P Shetty,
I'm getting the following error
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
so i downloaded the rxtx.jar for windows as suggested and referred to that jar files, but since i used netbeans and tomcat am not sure where to place the serial.dll and parallel.dll...

could you please help me out since we use the same development environment? i use win xp.


View Tutorial          By: Balaji at 2010-11-25 14:16:23
405. View Comment

dear sir/mam
i execute the above downloaded code....
i am getting fallowing error.
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)

kindly send me the step by step procedure.....


View Tutorial          By: tamilarasan.D at 2010-12-05 05:20:19
406. View Comment

i have run the code successfully but it does not send the message.
it only print the time and date of sending.
How it can use the mobile phone for sending the sms.
what r the drivers are needed for it , i have installed cable driver to connect the phone with pc.


View Tutorial          By: amrish at 2010-12-11 07:00:28
407. View Comment

hi, ashray p shetty
can you please tell me how to resolve the problem of time out.
i have install the com api, successfully but i doesn't send sms.
please help me its very urgent.
please mail me amrish.dwivedi87@yahoo.com


View Tutorial          By: amrish at 2010-12-12 07:30:49
408. View Comment

so how can i run this project

View Tutorial          By: milinda at 2010-12-17 10:01:23
409. View Comment

hello everyone... I am getting the error "sms.Sender:*** time out at step 2***".... i am using NOKIA 1110... i have installed the data cable of my mobile and my mobile is showing is 'MobiMB'(a software to access Nokia phones).... Please help me... as soon as possible... and i also need the code of receiving sms...
email me the complete source code at: umarilyas.026@hotmail.com


View Tutorial          By: umar at 2010-12-19 04:20:33
410. View Comment

Hi, Razvan

I change over to using your run() method, but the message does not seem to be send out to the mobile phone after performing step 4. I have verified that using using putty to send sms works using the same communication port. Can help ?

regards
James


View Tutorial          By: James at 2010-12-22 00:44:50
411. View Comment

hi every body i want full java code to send message to mobile. i am using NetBeans. pls pls guide me...it's so urgent. this my E-mail: yous_han@hotmail.com.

View Tutorial          By: Yous at 2010-12-26 06:45:30
412. View Comment

HI.....

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)

PLEASE...... WHAT I SHOULD DO 4 THIS ERROR..ANY1 CAN HELP MW???

I M NOT GETTING LIST OF PORTS IN PROGRAMME..THEN HOW CAN I CHOOSE??


View Tutorial          By: RAHUL at 2010-12-28 22:59:41
413. View Comment

hi,

i am trying to run this SMS java program, i am getting the NoSuchPortException.
can anyone please help me, it is very urgent.

Raghu


View Tutorial          By: Raghavendra at 2010-12-29 08:27:02
414. View Comment

Hi ,Razvan

I changed code as in your run()method,but i found that Myserial.getIncommingString doesnt return anything.But Commands executed successfully in hyperterminal..What will be the problem?please help me...


View Tutorial          By: sanil at 2011-01-01 11:05:53
415. View Comment

Hi! I'm working on Ubuntu 10.04

At the first look, this code looks very useful. But for some unfortunate people like me, it is not.

I had spent my entire last night solving various problems I came across. At the moment the error is like below:

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:280)
at sms.SerialConnection.openConnection(SerialConnection.java:72)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Thread.java:636)
java.lang.NullPointerException
at sms.SerialConnection.openConnection(SerialConnection.java:89)
at sms.Sender.send(Sender.java:46)
at sms.SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Thread.java:636)

In case any of you have Java code for receiving SMS, please do mail me at rushabhmehta05@gmail.com

Thanks!


View Tutorial          By: Rushabh at 2011-01-12 06:22:43
416. View Comment

Hi Rushabh, this only means that your port is not available are used by other application.

Use this code to check if that COM port is available..

private static boolean isPortAvailable(int port) {

try {

ServerSocket srv = new ServerSocket(port);

srv.close();
srv = null;
return true;

} catch (IOException e) {
return false;
}
}


View Tutorial          By: Ramlak at 2011-01-14 21:59:39
417. View Comment

Hi.. Everyone... i would like to send and received SMS using java and php.. please send me your complete code.. I really need this for our thesis project.. please help me guys.... Next week is our project defense.... Thank you...... =) this is my email, escuetamichael@yahoo.com....

View Tutorial          By: Michael at 2011-01-29 23:43:23
418. View Comment

i have download the all 5 codes.but how can i run this code.it doesn't have main method. please help me. I am new for this side. So please kindly help me

View Tutorial          By: Chathu at 2011-01-30 02:28:53
419. View Comment

i am using tata photon+ modem ,so which csca number required i.e message center no.....cause i face problem Jan 31 00:36:49 IST 2011:sms.Sender:*** time out at step 3***.....
plz hel me


View Tutorial          By: ganesh at 2011-01-30 12:11:01
420. View Comment

HI . i got the following exception while start up
please help me to solve this issue .


java.lang.UnsatisfiedLinkError: rxtxSerial (Not found in java.library.path) thrown while loading gnu.io.RXTXCommDriver
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: rxtxSerial (Not found in java.library.path)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:998)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:962)
at java.lang.System.loadLibrary(System.java:465)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at com.paypal.sms.SerialConnection.openConnection(SerialConnection.java:81)
at com.paypal.sms.Sender.send(Sender.java:46)
at com.paypal.sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:735)


View Tutorial          By: Ramesh at 2011-02-01 00:14:14
421. View Comment

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialPar allel in java.library.path Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySe rial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.So larisDriver

View Tutorial          By: koteshwar at 2011-02-05 05:33:19
422. View Comment

hi..i can send 4 or 5 sms per mnt..is there any way to send more sms per mnt??....

View Tutorial          By: rahul at 2011-02-11 00:17:51
423. View Comment

Hi Rahul,
I am struggling to send SMS using a java program. Can you please send me the code and procedure how you are success in sending a SMS using a program..
pls send to - sravcute@gmail.com

Thanks in advance
Sravani


View Tutorial          By: sravani at 2011-02-11 22:56:58
424. View Comment

hi
i try to write a code for send data or sms from phone to pc or web. anyone can help me?
thanks


View Tutorial          By: mjh at 2011-02-16 08:26:10
425. View Comment

hello can u send me the code in java to send and receive sms to mobile from pc....please mail me
at dange.somanath@gmail.com....


View Tutorial          By: somanath at 2011-02-17 01:28:40
426. View Comment

Hi I have Fixed - "NoSuchPortException" and also "UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path" exception. By copying win32com.dll to jre/bin folder and I have use windows version of comm.jar

View Tutorial          By: vijay at 2011-02-19 01:44:37
427. View Comment

For me it is executing without error, But not sending sms... I have logged all the repsonces , I am getting "OK" as response.

I suspect message center command - i.e., at+csca="xxx" (replaced message center). but for this command also i am getting "OK" as responce..

Please help me out....


View Tutorial          By: Vijay at 2011-02-19 01:51:08
428. View Comment

i am getting the erorr such as:::::
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at SMS.SerialConnection.openConnection(SerialConnection.java:71)
at SMS.Sender.send(Sender.java:46)
at SMS.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at SMS.SerialConnection.openConnection(SerialConnection.java:88)
at SMS.Sender.send(Sender.java:46)
at SMS.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)


can anyone please tell how to run it.i m in urgent need of the program


View Tutorial          By: supriyo at 2011-02-21 13:17:00
429. View Comment

Hello, I'm using the above codes for my project. But when i create the constructor of SMSClient, i get an error that the constructor is undefined. Please help me out....

View Tutorial          By: Sandeep Dattaraju at 2011-02-26 11:01:48
430. View Comment

Hi, If any body was able to send the message sucessfully using code pls share
complete working code for sending and recieving sms using java. I will be very grt full to you.

Best regards
Pradeep


View Tutorial          By: Pradeep Singh Chouhan at 2011-03-02 23:03:05
431. View Comment

Solution for javax.comm.NoSuchPortException
String driverName = "com.sun.comm.Win32Driver";
try{
CommDriver commdriver =
(CommDriver)Class.forName(driverName).newInstance( );
commdriver.initialize();
}
catch (Exception e2)
{
e2.printStackTrace();
}
Enumeration ports = CommPortIdentifier.getPortIdentifiers();


View Tutorial          By: Manjunath Suresh Vaidya at 2011-03-09 04:46:57
432. View Comment

Hi, If any body was able to send the message sucessfully using the above code pls share
complete working procedure for running the program. I searching for the procedude for more than 3 days.. pls help me plz..... plz....


View Tutorial          By: kavin at 2011-03-14 06:24:18
433. View Comment

Hi, thanks alot this code works for me , can someone please share or mail the code to receive sms to maryann.ramsay@gmail.com

Thank you


View Tutorial          By: ann at 2011-03-18 04:50:16
434. View Comment

I'm getting the following error even after several trial and error methods.
Sender:*** time out at step 2***

Please help me.


View Tutorial          By: Joe85 at 2011-03-18 08:58:04
435. View Comment

How to execute all these 5 files plz tell me step by step . send it as soon as possible
please


View Tutorial          By: Umesh Kamankar at 2011-03-19 10:56:29
436. View Comment

hi can u send me the complete working code for sending and receiving sms using c++......plz send me asap..

View Tutorial          By: Amit Adhikaree at 2011-03-22 17:47:49
437. View Comment

Hi
I need a javafx code which I
1 - turn off the computer using a mobile phone
2 - start the computer using a mobile phone
3 - Action Format for Hardisek using mobile
Thank you


View Tutorial          By: HNO11 at 2011-03-26 08:59:03
438. View Comment

it is working....great

View Tutorial          By: mahesh maduranga at 2011-03-27 23:01:57
439. View Comment

Please
Can you help me ^-^
I use the program (netbeans 6.9.1)(java)

asal242@hotmail.com


View Tutorial          By: HNO11 at 2011-03-28 11:08:28
440. View Comment

Why this exception at run time?

Fri Apr 01 15:23:03 IST 2011:Sender:*** time out at step 2***


View Tutorial          By: Sebin Joseph at 2011-04-01 06:03:17
441. View Comment

I want a code to receive message from GSM modem using AT commands with java communication API

View Tutorial          By: Mayur at 2011-04-05 00:00:05
442. View Comment

hello Ramlak I am getting Error Time Out At Step 6.
I am run my program using huawei e1550 modem(3G).
Please Give me Solution.


View Tutorial          By: hardik at 2011-04-13 05:12:06
443. View Comment

I am executing this code using NetBeans6.9 and getting an exception :
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at sms990.Connection.openConnection(Connection.java:82)
at sms990.Sender.send(Sender.java:50)
at sms990.Client.run(Client.java:45)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at sms990.Connection.openConnection(Connection.java:99)
at sms990.Sender.send(Sender.java:50)
at sms990.Client.run(Client.java:45)
at java.lang.Thread.run(Thread.java:619)


View Tutorial          By: Rohit at 2011-04-19 11:07:59
444. View Comment

hi can u send me the complete working code for sending and receiving sms using c++......plz send me asap..

View Tutorial          By: Brajesh at 2011-04-21 03:07:40
445. View Comment

Hi please help me out..

i am getting the following error

Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: sasivarnan at 2011-04-22 14:15:40
446. View Comment

Sat Apr 23 10:44:14 IST 2011:Sender:*** time out at step 2***

hi, i am getting the above error.. using reliance data card and executing the above files.. can anybody help me out to overcome this problem..

PLZZZZZZZZZZZZZZZZZZZZZZZ...


View Tutorial          By: sasivarnan at 2011-04-23 01:17:18
447. View Comment

Able to connect to mobile
Unable to send message to mobile.
Using Xpress music 5310
Please post working code @ p.pendkar@gmail.com
Thanks....


View Tutorial          By: Prashant at 2011-04-24 01:16:27
448. View Comment

hi please help me out.. how to use this card for reliance usb modem..

View Tutorial          By: sasivarnan at 2011-04-27 15:01:12
449. View Comment

I got the solution people. just do the following and all will work just fine
For Linux/Unix users
1) download javacomm for and specify linux
2) extract the file
3) copy javax.comm.properties(aparently its located in the docs folder) paste in in the jar folder(where the comm.jar file is located)
4) then just add the comm.jar to your class file.
and you are good to go.
5) Enjoy the coding.


View Tutorial          By: Nicholas Ndegwa at 2011-05-03 03:05:03
450. View Comment

Hi Ramlak
I am trying to run your code.
I have created a SMSTest.java to get an object for SMSClient
public class SMSTest {
public static void main(String[] args) {
// TODO Auto-generated method stub

String Tonumber = "09560341246";
String msg="hifsdf244";
SMSClient sms=new SMSClient(0);
sms.sendMessage(Tonumber,msg);
}
}

Change the Port number and csca, but anable tosend my SMS and getting error msg as
java.lang.NumberFormatException: For input string: "df244"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Long.parseLong(Long.java:403)
at java.lang.Long.parseLong(Long.java:461)
at Sender.run(Sender.java:159)
at java.lang.Thread.run(Thread.java:619)
Wed May 04 20:59:45 IST 2011:Sender:*** time out at step 6***

If I changed the msg to number as msg=1355244
then I am getting a message as
recipient: 09560341246 message: 1355244
sending ...
messageNo244
Wed May 04 21:09:42 IST 2011:Sender:sent message no:244
but still it did not send any SMS.

Please suggest
Thanks


View Tutorial          By: jainitya at 2011-05-04 12:26:16
451. View Comment

I do, the necessaries changes to receive messages :) thanks for your Classes, i have to use synchronous mode to send with various modems

View Tutorial          By: wodie at 2011-05-05 20:39:06
452. View Comment

hi friends i hav project work in this topic so pls help me.pls send me the code for that topic and please guide me............

View Tutorial          By: sullan at 2011-05-08 12:08:56
453. View Comment

hi I want to send SMS to mutiple no.s. Is it possible through this API if yes plz plz mail me at gopal9300@gmail.com. Because through the given code I can send SMS to only one at a time

View Tutorial          By: gaurav at 2011-05-17 09:54:12
454. View Comment

I have loaded allthe 5 java files.But how to implement in the program ? Plz tell me.It is very urgent,and how to execute the smsclient.java

View Tutorial          By: Thennarasu at 2011-05-20 02:30:28
455. View Comment

Hi,
I am Mahesh. i want to sending sms code in java. i cant getting in this code. Is there any othere solution then send me that code please.this is my Email Id: maheshathani445@gmail.com
Thank You,
Mahesh Athani


View Tutorial          By: Mahesh at 2011-05-20 05:24:22
456. View Comment

i want to sending sms code in java. send me that code please.
This is my Email Id:pmontu9@gmail.com


View Tutorial          By: Montu at 2011-06-01 15:15:56
457. View Comment

Good day. I managed to get the code working but I need assistance in sending more than one sms. As soon as the message exceed a certain number of characters the application does not send messages. Is there a way of increasing the number of characters that code will send to be included in the second sms or something

View Tutorial          By: thabiso at 2011-06-03 09:08:24
458. View Comment

Good day. I managed to get the application to work but my problem is that it can only send on message. As soon as the size of the sms exceeds one sms it does not send the message. Can anyone pls tell me what to do to solve my problems. Any suggestions can be emailed to tmokhele@gmail.com

View Tutorial          By: thabiso at 2011-06-03 09:21:32
459. View Comment

But the above code is not working, when we send SMS to more than 10 recepitents.

Any one knows solution for it?


View Tutorial          By: SenthilPandi ChandraSekaran at 2011-06-08 07:22:31
460. View Comment

this code is not working properly buddies. please send me full code which is working f9. coz its my final project. plz plz help!
my id is yourcounslor@gmail.com


View Tutorial          By: hammad at 2011-06-10 01:53:39
461. View Comment

Guys can you send me complete program for recieveing SMS in PC via Mobile Phone as a modem??? please,,, i am working on my thesis ALONE... hhuhu

View Tutorial          By: KEVIN at 2011-06-10 21:52:04
462. View Comment

send me the code with complete set of java packages for sending sms to mobile phone. i dont want to use GSM modem. in what way should i connect my mobile to pc...... get me out of this trouble soon......:(

View Tutorial          By: meena at 2011-06-15 03:12:17
463. View Comment

I download this program, but I need how to run. where
is main method,
otherwise send full code to this mail
prabhaprofit@gmail.com

thanks in advance


View Tutorial          By: prabha at 2011-06-21 04:52:42
464. View Comment

Hi,

Could you forward me the code at
vikasbolinjkar@gmail.com

Thx in advance.


View Tutorial          By: vikas at 2011-06-22 07:02:48
465. View Comment

I have download that 5 files .But how to run this prog. i tried but giving error. Plz suggest me in my emil id.

View Tutorial          By: Unnati at 2011-07-07 06:07:26
466. View Comment

Hello Mr. Developer of above proj....plz let me know wat pre-requites needs to be done to run these file....n which is the .java file needed to be run first....

My email id is : vishwakarma.p9@gmail.com

Thanks dude!!!


View Tutorial          By: Prakash Vishwakarma at 2011-07-08 10:02:22
467. View Comment

Hi, I need the complete working code for sending and recieving sms using java.
my email id.
unnatigavhale@gmail.com


View Tutorial          By: Unnati at 2011-07-13 05:06:06
468. View Comment

I got Error...Why it is happen..??

please give me code for write in main method..
this the exception...please explain..why it happen

----

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:430)
at javaapplication6.SerialConnection.openConnection(SerialConnection.java:72)
at javaapplication6.Sender.send(Sender.java:48)
at javaapplication6.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at javaapplication6.SerialConnection.openConnection(SerialConnection.java:89)
at javaapplication6.Sender.send(Sender.java:48)
at javaapplication6.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
BUILD SUCCESSFUL (total time: 0 seconds)


View Tutorial          By: Dineth at 2011-07-15 16:54:31
469. View Comment

the code works fine. you just need to create a main.
Can someone share with me the code for receiving sms please.
I need to get the string object message from sms in gsm sim.


View Tutorial          By: Nabil at 2011-08-09 11:11:03
470. View Comment

I need complete steps for execution
Several error serialparameters accessing SerialPort

msg to dasan11181@yahoo.com


View Tutorial          By: DASAn at 2011-08-10 10:10:36
471. View Comment

hellow my name is samer, i have a project of final studie, that speek about:
-if i send a message that containe shut down the phone must be turn off.
- and more,know the location of the phone using gprs.
my application's language is java
please can any one help me please as soon as possible.
my email is abousamer123@hotmail.com
thx you for your coopiration.
senserly samer flayha.


View Tutorial          By: samer flayha at 2011-08-17 09:37:16
472. View Comment

if time out at step 6*** Exception is occure
then change your mobile service center Number as per your mobile service provider

if u r use airtel then user +919820005444

for more information
email to jinjala.bharat@gmail.com


View Tutorial          By: Bharat at 2011-08-17 10:42:23
473. View Comment

i need help for my study, i need an algorithm for sending SMS announcement to students..

View Tutorial          By: Vincent at 2011-08-17 13:37:52
474. View Comment

hello
i have a final studie project that speek about sending msn that if its contains turn of or shut down the phone then must turn off and knowing the location of the phone using gprs.
knowing that the application's language is java
my email is abousamer123@hotmail.com
thx for your help.


View Tutorial          By: samer at 2011-08-18 07:39:25
475. View Comment

Hai everyone,I am getting error like *** time out at step 3***.
Anyone could help me plzzz...


View Tutorial          By: Prasad at 2011-08-30 06:28:44
476. View Comment

Hi Everyone, i tried the code. im using Micromax Q2 mobile. I have placed the comm.jar and the properties file,the dll file, in the source code location. i set the classpath for comm.jar. I compiled the folder and when i execute, im getting the error as javax.comm.NoSuchPortException. Please tell me how i could resolve it. My email id is aish.bliss@gmail.com

View Tutorial          By: adm at 2011-09-06 12:31:18
477. View Comment

Hi all
Can you please tell ,how to receive sms from mobile to website.Please its urgent


View Tutorial          By: Nanthini at 2011-09-07 16:48:04
478. View Comment

Hi Everyone, i tried the code. im using this code.any interesting code publish

View Tutorial          By: sourabh at 2011-09-09 12:42:02
479. View Comment

Hi i have created the 5 files and in main program i have called the SMSClient but the below error is troughing.

PLZ some can help me out this.

javax.comm.NoSuchPortException at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105) at javaapplication3.SerialConnection.openConnection(SerialConnection.java:72) at javaapplication3.Sender.send(Sender.java:45) at javaapplication3.SMSClient.run(SMSClient.java:50) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at javaapplication3.SerialConnection.openConnection(SerialConnection.java:89) at javaapplication3.Sender.send(Sender.java:45) at javaapplication3.SMSClient.run(SMSClient.java:50) at java.lang.Thread.run(Thread.java:619) U can drop mail to powershockanand_gmail.com

its very urgent
Thanks in advance


View Tutorial          By: Anandkumar at 2011-09-10 05:13:59
480. View Comment

Hi
I have final project whit sms program.
I have to programing a java program whit this detail:
it should send and recive sms ,and client can signature selfish sms .
NOTE:I don't have more time ,i should do it in 10 days ,and i don't know what to do it .
I NEED FOR YOUR HELP!! please !!
Please its urgent!!
it's my mail:
za_alipour_2011@yahoo.com
thanks........


View Tutorial          By: AliPour at 2011-09-11 16:51:19
481. View Comment

I want de total main prg to send and receive... send it as soon as possible..

View Tutorial          By: sharu at 2011-09-12 16:49:24
482. View Comment

sr. habla espanol necesito su ayuda... alguno tiene un ejemplo completo de como enviar sms por modem gsm en java... agradeceria mucho su ayuda..... mi email es sis.roger@ingenieros.com

View Tutorial          By: ROGER HERNANDEZ at 2011-09-13 15:20:01
483. View Comment

Hi,
can anyone show or send me a sample procedure or additional program to add a receiving function in the above program.

here's my email add.
kal_el91722@yahoo.com.ph

Thanks, your help is greatly appreciated.


View Tutorial          By: jsn10 at 2011-09-14 05:41:03
484. View Comment

Hi to every body,

I very new to concept of sending SMS to mobile using java application, So can you please tell me, what are the steps we need work to sucess fully send SMS.

Thanks in advance


View Tutorial          By: Srinivas at 2011-09-15 10:04:37
485. View Comment

Hello Everyone
I used this program but i'm getting ERROR message

=> +++AT
<= +++AT
OK

=> AT&F
<= AT&F
OK

=> ATE0
<= ATE0
OK

=> AT +CMEE=1
<=
OK

=> AT+CMGF=0
<=
OK

Stringa convertita <C8329BFD061DA74DD0F52D679301>
Stringa riconvertita <Hello GSM World>
=> AT+CMGS=28
<=
>
=> 0011000C912933233686550000AA0FC8329BFD061DA74DD0F52D679301
<=
ERROR

Response:
ERROR


View Tutorial          By: Yougeshwar Khatri at 2011-09-16 08:50:47
486. View Comment

Hello,

I was able to rectify port/comm related errors. However, the program run times out at step 3.

I tried different csca (available on web). But, it doesn't help.

Can you please describe
1. How to figure out the csca number ?
2. Any registration needed against CSCA ?
3. Do we need to connect PC to mobile ? What are the additional steps ?


View Tutorial          By: Harsh at 2011-10-09 16:54:06
487. View Comment

Hi fiends,
your given approch is correct . but did not find how to invock the sendSMS menthod.


SMSClient sc = new SMSClient(1);
sc.sendMessage("+91 + mycell number ","Hello");
}
but this cord is not working .
showing the some error like

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at com.tester.sms.SerialConnection.openConnection(SerialConnection.java:72)
at com.tester.sms.Sender.send(Sender.java:47)
at com.tester.sms.SMSClient.run(SMSClient.java:70)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.tester.sms.SerialConnection.openConnection(SerialConnection.java:89)
at com.tester.sms.Sender.send(Sender.java:47)
at com.tester.sms.SMSClient.run(SMSClient.java:70)
at java.lang.Thread.run(Unknown Source)

plz help me to solve this problem .
and give me the client code from where we invock the sendSms method.

plz give me reply on aksingh4515@gmail.com


View Tutorial          By: Amit Kumar Singh at 2011-10-10 04:44:58
488. View Comment

Hai people plz help it's urgent, i got no errors in the code above but when i try to run this SMSLient class

1.it doe not have a maim method
2. what kind of gsm modem we use to get this run
3.


View Tutorial          By: Hopewell at 2011-10-13 22:57:45
489. View Comment

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at lookandfeel.SerialConnection.openConnection(SerialConnection.java:72)
at lookandfeel.Sender.send(Sender.java:46)
at lookandfeel.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at lookandfeel.SerialConnection.openConnection(SerialConnection.java:89)
at lookandfeel.Sender.send(Sender.java:46)
at lookandfeel.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:619)
BUILD SUCCESSFUL (total time: 1 second)

what i do to this pleaseeeeeeeeeeeeeeeee !


View Tutorial          By: das at 2011-10-20 15:21:05
490. View Comment

can this code communicate with other pc that using php web based language?fiy:i plan to communicate 2 pc with 2 gsm using 1 web based php and java aplication.is it possible.tq

View Tutorial          By: lolo at 2011-10-28 09:14:30
491. View Comment

why the code had error in status???

View Tutorial          By: matuz at 2011-11-13 11:35:34
492. View Comment

can any body help me,i need to send a sms from sim card reader and also to store the received sms into a database.

View Tutorial          By: vinayaka DJ at 2011-11-14 12:44:01
493. View Comment

Hi dude's it's working fine for me.first i got no such port exception,to resolve this u need to put win32.dll file in jre/bin and com.jar and javax.properties files in jre/lib,

after that u will get one more problem ***timeout at step2*** to resolve this change u r smsc number it should include +91 in front


i hav used this code .as well as i hav tried reciever also.both are works great for me.thnx dudes...for any queries contact me tnsurendra@gmail.com


import java.util.Enumeration;

import javax.comm.CommPortIdentifier;

public class Test {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

try {
SMSClient s=new SMSClient(0);
s.sendMessage("+919848022338", "hiiii ..how are you,");

} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

}


View Tutorial          By: raavi.surendra at 2011-11-16 10:10:31
494. View Comment

Hi,
I have loaded all 5 java classes and i wrote one more java class it contains main method, in this method i created object for SMSClient class like SMSClient s=new SMSClient(0) and s.sendMessage("+919959460013", "hiiii ..how are you,"); But is shows some errors.
I have executed the entire code in linux. It didn't work.
please send answar how to execute the above code in Linux.


View Tutorial          By: DurgaPrasad at 2011-11-24 06:02:19
495. View Comment

Hi,
Please tell me how to execute the above code in linux.
thanks


View Tutorial          By: DurgaPrasad at 2011-11-24 06:04:48
496. View Comment

I have a website and i want to make a option to send sms from my website, as why my visitors can send sms from my site. how can i do that. pleas give me total code or suggestion any site wher i can get the full code in html and php.
Thank you.


View Tutorial          By: rasel at 2011-11-26 15:50:49
497. View Comment

Hi Friends,
Saw all of your comments. The above code has worked for some. Can you all please help me out with the same. The code is throwing error saying it cannot find "import javax.comm.*" and interfaces like "SerialPortEventListener, CommPortOwnershipListener". Can you please let me know what jars needs to added to resolve this?


View Tutorial          By: Avinash at 2011-11-28 04:43:09
498. View Comment

Hi everybody,
cn u plz mail me the working code to my mail id asap along with the required files... its really very important... thanks in advance :)


View Tutorial          By: Srijita at 2011-11-28 06:10:03
499. View Comment

The above code works for me. When I run the program, it gets timed out at step 2. Again i tried, it worked and the message is sent.

View Tutorial          By: Avinash at 2011-12-01 10:20:19
500. View Comment

hi RAMLAK i am akankshain and getting these errors while compiling can u help me...thanks in advance
.\SerialConnection.java:1: package javax.comm does not exist
import javax.comm.*;
^
.\SerialConnection.java:12: cannot find symbol
symbol: class SerialPortEventListener
public class SerialConnection implements SerialPortEventListener,
^
.\SerialConnection.java:13: cannot find symbol
symbol: class CommPortOwnershipListener
CommPortOwnershipListener {
^
.\SerialParameters.java:32: package javax.comm does not exist
import javax.comm.*;
^
.\SerialConnection.java:25: cannot find symbol
symbol : class CommPortIdentifier
location: class SerialConnection
private CommPortIdentifier portId;
^
.\SerialConnection.java:26: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
private SerialPort sPort;
^
.\SerialConnection.java:241: cannot find symbol
symbol : class SerialPortEvent
location: class SerialConnection
public void serialEvent(SerialPortEvent e) {
^
.\SerialConnection.java:70: cannot find symbol
symbol : variable CommPortIdentifier
location: class SerialConnection
portId = CommPortIdentifier.getPortIdentifier(parameters.getPor
());
^
.\SerialConnection.java:71: cannot find symbol
symbol : class NoSuchPortException
location: class SerialConnection
} catch (NoSuchPortException e) {
^
.\SerialConnection.java:87: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
sPort = (SerialPort)portId.open("SMSConnector", 30000);
^
.\SerialConnection.java:88: cannot find symbol
symbol : class PortInUseException
location: class SerialConnection
} catch (PortInUseException e) {
^
.\SerialConnection.java:139: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:169: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:181: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:252: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.DATA_AVAILABLE:
^
.\SerialConnection.java:276: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.BI:
^
.\SerialParameters.java:54: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
.\SerialParameters.java:55: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
.\SerialParameters.java:56: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.DATABITS_8,
^
.\SerialParameters.java:57: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.STOPBITS_1,
^
.\SerialParameters.java:58: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.PARITY_NONE );
^
.\SerialParameters.java:216: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_5;
^
.\SerialParameters.java:219: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_6;
^
.\SerialParameters.java:222: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_7;
^
.\SerialParameters.java:225: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.databits = SerialPort.DATABITS_8;
^
.\SerialParameters.java:243: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_5:
^
.\SerialParameters.java:245: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_6:
^
.\SerialParameters.java:247: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_7:
^
.\SerialParameters.java:249: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.DATABITS_8:
^
.\SerialParameters.java:270: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_1;
^
.\SerialParameters.java:273: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_1_5;
^
.\SerialParameters.java:276: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.stopbits = SerialPort.STOPBITS_2;
^
.\SerialParameters.java:294: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_1:
^
.\SerialParameters.java:296: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_1_5:
^
.\SerialParameters.java:298: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.STOPBITS_2:
^
.\SerialParameters.java:319: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_NONE;
^
.\SerialParameters.java:322: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_EVEN;
^
.\SerialParameters.java:325: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
this.parity = SerialPort.PARITY_ODD;
^
.\SerialParameters.java:343: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_NONE:
^
.\SerialParameters.java:345: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_EVEN:
^
.\SerialParameters.java:347: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.PARITY_ODD:
^
.\SerialParameters.java:362: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_NONE;
^
.\SerialParameters.java:365: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_XONXOFF_OUT;
^
.\SerialParameters.java:368: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_XONXOFF_IN;
^
.\SerialParameters.java:371: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_RTSCTS_IN;
^
.\SerialParameters.java:374: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_RTSCTS_OUT;
^
.\SerialParameters.java:376: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
return SerialPort.FLOWCONTROL_NONE;
^
.\SerialParameters.java:387: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_NONE:
^
.\SerialParameters.java:389: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_XONXOFF_OUT:
^
.\SerialParameters.java:391: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_XONXOFF_IN:
^
.\SerialParameters.java:393: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_RTSCTS_IN:
^
.\SerialParameters.java:395: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
case SerialPort.FLOWCONTROL_RTSCTS_OUT:

^


View Tutorial          By: akanksha at 2011-12-06 10:15:47
501. View Comment

i avinash can i know how ur problem is resolved ,i have the same type of errors like it cannot fine javax.comm

View Tutorial          By: santosh at 2011-12-06 10:35:42
502. View Comment

Thanks :) It works for me :)

View Tutorial          By: Milind at 2011-12-07 10:05:23
503. View Comment

it works well thanks

View Tutorial          By: Zahran at 2011-12-08 03:07:07
504. View Comment

package practice_bo;

import practice_bean.practice_bean;
import practice_dao.practice_dao;

public class practice_bo {




public void asign(practice_bean practice_Beanobj) {
// TODO Auto-generated method stub
practice_dao practice_daoobj = new practice_dao();

practice_daoobj.newasign(practice_Beanobj);

}

public void asignn(practice_bean practiceobjj) {
// TODO Auto-generated method stub
practice_dao practice_daoobj=new practice_dao();
practice_daoobj.asignn1(practiceobjj);

}


}



package practice_dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

import practice_bean.practice_bean;
import practice_utility.practice_db;

public class practice_dao {



public int newasign(practice_bean practiceBeanobj) {
// TODO Auto-generated method stub

practice_db dbconnobj=new practice_db();
Connection conn=dbconnobj.getConnection();
try
{
PreparedStatement ps = conn.prepareStatement("insert into practice values(?,?)");
ps.setString(1,practiceBeanobj.getUsername());
ps.setString(2,practiceBeanobj.getPassword());
ps.executeUpdate();
}
catch

(Exception e){
e.printStackTrace();
}

finally
{
dbconnobj.closeConnection(conn);
}
return 0;

}

public void asignn1(practice_bean practiceobjj) {

// TODO Auto-generated method stub
practice_db practice_dbobjj=new practice_db();
Connection connn=practice_dbobjj.getConnection();
try
{

PreparedStatement ps=connn.prepareStatement("delete from practice where Username=?");
ps.setString(1,practiceobjj.getUsername());
ps.executeUpdate();
}
catch

(Exception e){
e.printStackTrace();
}

finally
{
practice_dbobjj.closeConnection(connn);
}

return;
}
}


package practice_servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import practice_bean.practice_bean;
import practice_bo.practice_bo;

/**
* Servlet implementation class practice_servlet
*/
public class practice_servlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private practice_servlet set;

/**
* @see HttpServlet#HttpServlet()
*/
public practice_servlet() {
super();
// TODO Auto-generated constructor stub
}

/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
}

/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
practice_bean practice_beanobj = new practice_bean();
practice_bo practice_boobj = new practice_bo();
String username = request.getParameter("txt_username");
String password = request.getParameter("txt_password");

practice_beanobj.setUsername(username);
practice_beanobj.setPassword(password);

practice_boobj.asign(practice_beanobj);

}


}
package practice_utility;
import java.sql.Connection;
import java.sql.DriverManager;
public class practice_db {

/**
* @author-indhu
* @return
*/


public Connection getConnection(){
Connection connection= null;
try {

// Load the JDBC driver
String driverName = "oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);

// Create a connection to the database
String serverName = "172.24.137.30";
String portNumber = "1521";
String sid = "ora10g";
String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
String username = "e526993";
String password = "fuvwKLYnr";
connection = DriverManager.getConnection(url, username, password);
}
/* System.out.println(connection);

Statement st = connection.createStatement();

ResultSet rs = st.executeQuery("select * from teststudent");

while(rs.next()){
System.out.println("name ::"+ rs.getString(2));
}*/
catch (Exception e){
System.out.println("exception "+e);
}
return connection;
}
public void closeconnection(Connection conn, Object Connection){
if (conn!=null);
try
{
conn.close();
}

catch(Exception e){
// TODO Auto-generated catch block
e.printStackTrace();
}

return;
}
public void closeConnection(Connection connn){
if (connn!=null);
try
{
connn.close();
}
catch(Exception e){
e.printStackTrace();
}
}
}


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>practice</title>
<script type="text/javascript">
function main()
{
if (!validusername())
return false;
if (!validpassword())
return false;
}
function validusername()
{

var x=document.forms["practice"]["txt_username"].value;
var y=/^[a-zA-Z]+$/
if (x.match(y))
return true;
else
{
alert ("enter valid username");
return false;
}
}
function validpassword()
{
var M=document.forms["practice"]["txt_password"].value;
var N=/^[a-zA-Z]+$/
if(M.match(N))
return true;
else
{
alert ("enter valid password");
return false;
}

}


</script>
</HEAD>


<body>

<p><form name="practice" action="/practice/practice_servlet" onclick= "return main()" method="post">
<pre>
<p>
username: <input type="text" name="txt_username"><br>
Password: <input type="password" name="txt_password" maxlength=6><br>

<input type="submit" value="submit">



</pre>

</p>
</form>


</body>
</html>


View Tutorial          By: nishi at 2011-12-09 02:00:20
505. View Comment

Hi santhosh,
Try it out using RXTXcomm.jar instead of javax.comm .


View Tutorial          By: Kiran at 2011-12-14 04:31:29
506. View Comment

It work fine with message below 160 chars. How can we modify to send message with more than 200 chars? Please suggest where we need to customize.

View Tutorial          By: Milind at 2011-12-15 06:20:33
507. View Comment

Hello Nishi,
The class names in your program should me meaningful. I want to know what the program is all about.....


View Tutorial          By: Kiran at 2011-12-16 06:32:54
508. View Comment

hi...i want a code to send sms from GSM to PC.

View Tutorial          By: siri at 2011-12-19 07:39:02
509. View Comment

Please send me application for sending message on mobile
above application not work propertly


View Tutorial          By: jigar at 2011-12-21 11:53:48
510. View Comment

I'm using BSNL broadband modem,,from that how can i send sms from pc to any mobile????
I also run the 5 java classes & uses the a servlet to call SMSClient program,,,but i m getting error::::
11/12/22 13:35:19 javax.comm.NoSuchPortException
11/12/22 13:35:19 at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
11/12/22 13:35:19 at com.we.wb.wl.SerialConnection.openConnection(SerialConnection.java:40)
11/12/22 13:35:19 at com.we.wb.wl.Sender.send(Sender.java:43)
11/12/22 13:35:19 at com.we.wb.wl.SMSClient.run(SMSClient.java:35)
11/12/22 13:35:19 at java.lang.Thread.run(Thread.java:595)
11/12/22 13:35:19 java.lang.NullPointerException
11/12/22 13:35:19 at com.we.wb.wl.SerialConnection.openConnection(SerialConnection.java:51)
11/12/22 13:35:19 at com.we.wb.wl.Sender.send(Sender.java:43)
11/12/22 13:35:19 at com.we.wb.wl.SMSClient.run(SMSClient.java:35)
11/12/22 13:35:19 at java.lang.Thread.run(Thread.java:595)
//////////////////////////////////////
How can i solve this.....please help me .....


View Tutorial          By: souvik at 2011-12-22 08:12:50
511. View Comment

Hi i 've used this SMSClient.java in my simple program as below

public class sms
{
public static void main(String args[])
{
SMSClient sm = new SMSClient(1);
sm.sendMessage("8012329248","Hi");
}
}

but i got error like this
Exception in thread "main" java.lang.NoClassDefFoundError: sms/java
Caused by: java.lang.ClassNotFoundException: sms.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: sms.java. Program will exit.

Pls any one tel me rectify this error, thanks n advance


View Tutorial          By: Prakah at 2011-12-22 17:10:48
512. View Comment

Hi Jigar,
The above application works for me. Can you please tell me what the problem is?


View Tutorial          By: Kiran at 2011-12-26 04:00:24
513. View Comment

Hi..All ...to run this programs.first of of all u need one GSM modem or Mobile phone and second thing is ,lot of people are asking this."i'm not able to compile ,it is getting error javax.comm " like this


mport javax.comm.*;
^
.\SerialConnection.java:12: cannot find symbol
symbol: class SerialPortEventListener
public class SerialConnection implements SerialPortEventListener,
^
.\SerialConnection.java:13: cannot find symbol
symbol: class CommPortOwnershipListener
CommPortOwnershipListener {
^
.\SerialParameters.java:32: package javax.comm does not exist
import javax.comm.*;
^
.\SerialConnection.java:25: cannot find symbol
symbol : class CommPortIdentifier
location: class SerialConnection
private CommPortIdentifier portId;
^
.\SerialConnection.java:26: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
private SerialPort sPort;
^
.\SerialConnection.java:241: cannot find symbol
symbol : class SerialPortEvent
location: class SerialConnection
public void serialEvent(SerialPortEvent e) {
^
.\SerialConnection.java:70: cannot find symbol
symbol : variable CommPortIdentifier
location: class SerialConnection
portId = CommPortIdentifier.getPortIdentifier(parameters.getPor
());
^
.\SerialConnection.java:71: cannot find symbol
symbol : class NoSuchPortException
location: class SerialConnection
} catch (NoSuchPortException e) {
^
.\SerialConnection.java:87: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
sPort = (SerialPort)portId.open("SMSConnector", 30000);
^
.\SerialConnection.java:88: cannot find symbol
symbol : class PortInUseException
location: class SerialConnection
} catch (PortInUseException e) {
^
.\SerialConnection.java:139: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:169: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:181: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:252: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.DATA_AVAILABLE:
^
.\SerialConnection.java:276: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.BI:
^
.\SerialParameters.java:54: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
.\SerialParameters.java:55: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
.\SerialParameters.java:56: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.DATABITS_8,


for this u need to have comm.jar in your classpath.....


View Tutorial          By: raavi.surendra at 2011-12-29 05:34:06
514. View Comment

I did'nt manage to run the program . I've added the comm.jar the .properties and the dll file . I wrote the main class as said in the comments and I have an exception :


pk.SerialConnectionException: Port currently owned by Unknown Windows Application

Can you please give us the the complete source code (those who managed to execute the program )

Thanks in advance


View Tutorial          By: Bull at 2012-01-01 16:28:20
515. View Comment

any help please I'm getting this exception
what's the problem ?

pk.SerialConnectionException: Unknown Application
at pk.SerialConnection.openConnection(SerialConnection.java:96)
at pk.Sender.send(Sender.java:46)
at pk.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: Bull at 2012-01-02 17:22:18
516. View Comment

After a great struggle I am able to successfully compile the code but while running it the cursor is simply blinking,it does not showing anything not even an error message also......

but when I am disconnecting the USB cable of my mobile phone it is showing the message ***time out at step2 ***

please help me at the earliest.................


View Tutorial          By: raghu at 2012-01-04 15:10:07
517. View Comment

Can any one say how to send a message to a particular number through java swings program....?
If any body know plz send a sample coding to my mail-id.
My mail id is sankarguru29@gmail.com


View Tutorial          By: Sankar guru.P at 2012-01-05 07:43:44
518. View Comment

today Iam getting time ,date of sending and "time out at step 2" error while running the program witout disconnecting the usb cable also .
please somebody help me ...............................


View Tutorial          By: raghu at 2012-01-07 14:43:32
519. View Comment

I managed to run the code but I'm getting a *** time out at step 3*** . I don't know what's the problem or how to solve it plz can you help me

View Tutorial          By: Bull at 2012-01-11 12:26:57
520. View Comment

can any one share the link for downloading the first 5 programs

View Tutorial          By: jay at 2012-01-17 14:21:28
521. View Comment

I have successfully send sms after some trying....first getting NoSuchPortException and After it getting time out in step 6 and after it successful ... all have changes are
1.add new class file as

//DemoSms.java
public class DemoSms
{
public static void main(String args[])
{
SMSClient sc = new SMSClient(1);
sc.sendMessage("+919413102070","Hello");
}

}
//ends here
2.Control panel>Device Maneger>modem and phone >properties

from here i got port name and baud rate and change respectively in following files
SerialParameter.java line 102 replce
public String getPortName() {
return "COM4";
}

line 126 replace
public int getBaudRate() {
return 921600;
}

3. in sender.java
line 23 was rplaced by
private String csca="+919839099999"; // the message center
line 24 was replaced by
private SerialParameters defaultParameters= new SerialParameters ("COM4",921600,0,0,8,1,0);

if u r getting error of port using by another application than restart your computer and make sure that your modem is not connected to internet
THANKS


View Tutorial          By: DILIP at 2012-01-19 14:38:50
522. View Comment

hi ..........
the code is worked for me..... thank our author a lot...
those who are having timeout problem, pls follow the sender.java code:
import java.util.Date;


public class Sender implements Runnable {


SerialConnection mySerial =null;


static final private char cntrlZ=(char)26;

String in, out;

Thread aThread=null;

String recipient=null;

String message=null;


private String csca="+919840011003"; // the message center

private SerialParameters defaultParameters= new SerialParameters ("COM14",460800,0,0,8,1,0);

public Sender(String recipient, String message){


this.recipient=recipient;

this.message=message;


}

/**
* connect to the port and start the dialogue thread
*/

public int send () throws Exception{


SerialParameters params = defaultParameters;


mySerial =new SerialConnection (params);


mySerial.openConnection();


aThread=new Thread(this);


aThread.start() ;

return 0;

}


/**
* implement the dialogue thread,
* message / response via steps,
* handle time out
*/


public void run(){


try{


int expectedResult=-1;


mySerial.send("at");

System.out.println("...............");

mySerial.send("at+cmgf=1");

mySerial.send("at+csca=\""+csca+"\"");

System.out.println("++++++++++");
mySerial.send("at+cmgs=\""+recipient+"\"");

System.out.println("***********");
System.out.println("***********");
mySerial.send(message+cntrlZ);

}
catch (Exception e){

e.printStackTrace();

}

}

}



Also change in SMSCLient.java..........remove the mode ,SYNC , ASYNC ,status and all........ surely u ll get output.. thanks


View Tutorial          By: pradeep at 2012-01-25 06:30:14
523. View Comment

Hi DILIP !
Can you plz help me I have an exception : port currently used by unknown windows application
I'm using my blackberry as a modem connected with an usb cable .
when you said that we must verify that the modem is not connected to internet it means what exactly ??
what are you using your phone ?


View Tutorial          By: Bull at 2012-01-25 16:16:36
524. View Comment

Hi
I tried to use this on a windows 7 32 bit OS but I get this exception
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:662)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:662)

I have copied comm.jar , win32com.dll and javax.comm.properties files to appropriate folders
my javax.comm.properties
looks like this
#
# Drivers loaded by the Java Communications API standard extension
# at initialization time
#
# Format:
# Each line must contain ONE driver definition only
# Each line must be of the form:
# driver=<ClassName>
# No spaces or tabs in the line.
# ClassName must implement the interface javax.comm.CommDriver
# example: driver=Win32Serial
#
#
# The hash(#) character indicates comment till end of line.
#
# Windows Serial Driver
Driver=com.sun.comm.Win32Driver


which is the only part I'm not sure whether correct or not
anybody out there could help to fix this ?
:)


View Tutorial          By: Asela at 2012-01-26 18:35:57
525. View Comment

Hi
I have done all the steps mentioned above but I still get this exception
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:662)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:662)
BUILD SUCCESSFUL (total time: 0 seconds)


I'm trying to use this on a Windows 7 OS
and my
javax.comm.properties file looks like this

#
# Drivers loaded by the Java Communications API standard extension
# at initialization time
#
# Format:
# Each line must contain ONE driver definition only
# Each line must be of the form:
# driver=<ClassName>
# No spaces or tabs in the line.
# ClassName must implement the interface javax.comm.CommDriver
# example: driver=Win32Serial
#
#
# The hash(#) character indicates comment till end of line.
#
# Windows Serial Driver
Driver=com.sun.comm.Win32Driver
Im not sure whether I have to add any addition to this
plz help to over come this :)


View Tutorial          By: Asela at 2012-01-26 18:53:51
526. View Comment

SMSC number is the sms center no. put the sim to a mobile,den go to sms settings, & u'l find it

View Tutorial          By: Java MAn at 2012-01-28 19:08:23
527. View Comment

Please note that the above code does not work with Windows 7, so please try to use Windows xp.
All those who getting timeout at step 5 or step 3, please make sure that you have selected the AT command port which you can see in device manager.
There is no need to put dll file in windows/system32.

Just copy these 3 files and it will work.
copy comm.jar \jdk1.6\jre\lib\ext
copy win32com.dll \jdk1.6\bin
copy javax.comm.properties \jdk1.6\jre\lib


View Tutorial          By: mk at 2012-02-14 15:37:02
528. View Comment

I managed to get the program working. However I have a problem because after I deployed the war file to my tomcat server i am unable to send out any more messages. Could anyone please help me with this problem.

View Tutorial          By: Anthrax at 2012-02-15 10:11:19
529. View Comment

Please note that the above code does not work with Windows 7, so please try to use Windows xp.
All those who getting timeout at step 5 or step 3, please make sure that you have selected the AT command port which you can see in device manager.
There is no need to put dll file in windows/system32.

Just copy these 3 files and it will work.
copy comm.jar \jdk1.6\jre\lib\ext
copy win32com.dll \jdk1.6\bin
copy javax.comm.properties \jdk1.6\jre\lib


View Tutorial          By: mk at 2012-02-15 10:59:49
530. View Comment

the above code works fine for. May someone help with the code that receives SMS's from a mobile phone.

email: tmoakofi@gmail.com


View Tutorial          By: T.T at 2012-02-23 06:22:36
531. View Comment

i want a java code to make a GUI in netbeans and switch a led using that GUI through my pc. could you please provide me the code.i would be highlly thankful.
siddharthlalit@gmail.com


View Tutorial          By: siddharth at 2012-03-17 09:59:59
532. View Comment

hi guys,

i want some help in that code ,

i got error like


Port currently owned by Unknown Windows Application
at kpack.SerialConnection.openConnection(SerialConnection.java:95)
at kpack.Sender.send(Sender.java:44)
at kpack.SMSClient.run(SMSClient.java:42)
at java.lang.Thread.run(Unknown Source)

what i want to do?

here i using the mobile modem , is that the problem...

orelse baudRate no, how to got that no...

should i want to use internet or not ...

please help me

do reply ...

thank u..


View Tutorial          By: THANGA at 2012-03-19 15:24:38
533. View Comment

I set my eclipse as describe above.
I also change my SMSC no. in Sender.java as
private String csca=\"+919032055002\"; // the message center
Now I create one class like this:
public class MainClass {
   public static void main(String[] args) {
       String rec = \"9898565014\";
       String msg = \"Hiiii\";
       SMSClient smsClient = new SMSClient(1);
       smsClient.sendMessage(rec, msg);
   }
}
when I run this program then it show following error:
javax.comm.NoSuchPortException
   at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
   at SerialConnection.openConnection(SerialConnection.java:70)
-----
-----
I am using Airtel MZ16USB Modem which is on COM 17
so where I need to change port number in the program or it will automatically detect this device.
Please help me.....


View Tutorial          By: Anonymous at 2012-03-25 02:12:52
534. View Comment

Dear any buddy i use Nokia N73 and connect with Bluetooth any buddy can send me complete code with com port from bluetooth and completely working code.plz it's urgent...pllzzzzzz
send me on >: "zstranger_90@yahoo.com"


View Tutorial          By: zstranger at 2012-03-29 07:43:12
535. View Comment

Dear any buddy i use Nokia N73 and connect with Bluetooth any buddy can send me complete code with com port from bluetooth and completely working code.plz it's urgent...pllzzzzzz
send me on >: "zstranger_90@yahoo.com"


View Tutorial          By: zstranger at 2012-03-29 07:47:02
536. View Comment

Please send me working code and setup,,My mail id is deepandrancer@gmail.com

View Tutorial          By: Karthik at 2012-03-30 19:56:35
537. View Comment

Hi,

This is really urgent... my code is working fine...
but getting an error time out at step5

Plzzzzzzz help on this......


>'atz' sent
>'ath0' sent
>'at+cmgf=1' sent
>'at+csca="+6596845999"' sent
>'at+cmgs=" 9946089045"' sent
Mon Apr 09 11:12:23 IST 2012:


View Tutorial          By: Benetha at 2012-04-09 05:57:45
538. View Comment

I need a software to send messages to our members. I found this java code here. How to get this code working I am new to java dont anything about coding. Where should and how should I use the above code...?? Is there anyone who can help me. Its very urgent.....!!! Or can anyone suggest me any software Paid or Free where I can send SMS from my PC to mobile using internet only (not the ones which requires our phones to be connected)
Thank you
M V Bhaktha
mvbhaktha@gmail.com


View Tutorial          By: M V Bhaktha at 2012-05-22 08:19:38
539. View Comment

Im using maxis broadband now.
I want to create an android app. that is pay parking fees by sms.
Now i want send and receive sms. The database can view in Web (php).
Can anyone teach me or send me the code? Im facing the receive msg and link the android sms database to mysql.
Im using free localhost. VERY URGENT ><

PLS send me the code and guide. I appreciate your help.
This is my email (gray_dinosaur@hotmail.com)


View Tutorial          By: rayminn at 2012-06-03 21:08:13
540. View Comment

for me also The code gives the following exception :- Exception in thread "main" java.lang.NoSuchMethodError: main how to rectify it .... please mail me at nilesh.agrawal12@gmail.com and i am also trying to call this class file in my program,but it's not taking..so how can i do that...THANKS ...

View Tutorial          By: Nilesh Agrawal at 2012-06-06 15:55:02
541. View Comment

its giving exception
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:662)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:662)
How to rectify it ??


View Tutorial          By: Dc at 2012-06-07 04:08:19
542. View Comment

when i was running this code... it is giving me this error
OK 0
COM1
Yes the problem is here 1
null
OK 1
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:85)
at Sender.send(Sender.java:44)
at SMS.run(SMS.java:34)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: Nilesh Agrawal at 2012-06-08 15:08:25
543. View Comment

Thank You,
Code is working well.
Is there any way to hide my mobile number to recipient ?


View Tutorial          By: dinesh at 2012-06-23 04:33:16
544. View Comment

do we require a gsm modem for sure ? aren't there any ways of sending sms using java code without using a gsm server???

View Tutorial          By: sherry at 2012-07-10 11:28:58
545. View Comment

To execute program you need comm.jar that is not available at sun site. you can download from http://www.java.net/external?url=http://koti.mbnet.fi/akini/java/comm/

View Tutorial          By: shreyansh shah at 2012-07-11 05:57:42
546. View Comment

Hai,
dis is anu, dng final year. i need to do ma project and i hv selected java as ma front end. bt am nt dat gud in it yaa soo can u plzz help me by any means!!


View Tutorial          By: anu at 2012-07-12 15:41:19
547. View Comment

The code gives the following exception :-


Exception in thread "main" java.lang.NoSuchMethodError: main

how to rectify it ....

please mail me at waqaralishah1@gmail.com

THANKS .


View Tutorial          By: waqar at 2012-07-26 17:02:07
548. View Comment

Hi
i am getting this error

com.sms.SerialConnectionException: Port currently owned by Unknown Windows Application
at com.sms.SerialConnection.openConnection(SerialConnection.java:95)
at com.sms.Sender.send(Sender.java:46)
at com.sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Thread.java:568)

Please help..


View Tutorial          By: parab at 2012-08-01 06:24:18
549. View Comment

You have mentioned that
to use this program you need to download all the 5 java files
* mentioned on top. Does this program mean what followed after your comments on top? If so, it is the last of the 5 programs downloaded. I thought this is the 6th program needed to send sms. As I'm a novice in this area, please give a simple example to write the 6th program to send an SMS. Also, advise as to how I can compile all the 6 parts using Netbeans IDE along with JDK1.6.0_11. Is it possible to send sms without the CSCA or SMSC number in your sender.java file? I mean, can I just send it using the recipient's cell number alone? Thanks in advance. -- Naasik


View Tutorial          By: Naasik at 2012-08-05 00:15:57
550. View Comment

hello all,
i have this error.
Exception in thread "main" java.lang.NoClassDefFoundError: SEnder (wrong name: Sender)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


View Tutorial          By: daniel at 2012-08-12 18:50:04
551. View Comment

Thanks for the code. The code runs fine without any error. But it didnt send any sms. Its giving out put as

Wed Aug 22 15:36:35 IST 2012:Ex.Sender:*** time out at step 2***

This is my main method.

public static void main(String[] args) {
int mode = 1;
SMSClient sc = new SMSClient(mode);
sc.sendMessage("MyMobileNo", "Hai");
}

Can anyone say where its going wrong. I m using airtel 3G modem. Whats the smsc no for that.

Thanks in advance.


View Tutorial          By: aanube at 2012-08-22 10:12:54
552. View Comment

hi guys.
i have downloaded the code for sending the sms from computer to mobile, but i'm not sure about how to implement it.
Please any one can tell me how we can implement the code.
can any one send the code to my email : mohdtabrezalam511@gmail.com please.


View Tutorial          By: Tabrez Ansari at 2012-09-13 11:03:46
553. View Comment

can you send me comm.jar required for this project also if possible send me the full implemented project in netbeans or eclipse

Thanx...................


View Tutorial          By: rahul at 2012-10-20 12:21:42
554. View Comment

hi,
please anyone tell me how to send bulk sms in java? single sms sending code has run successfully.can i use this code for bulk sms?help me .mail me in javacode2005@gmail.com.


View Tutorial          By: Nasrin at 2012-10-21 18:59:50
555. View Comment

No main class found
need favour
help me plzzzzz


View Tutorial          By: Mudasir at 2012-11-10 17:09:57
556. View Comment

it works! thanks! :D
however I would like to know what part of the code shall I edit to maximize the character limit of each sms?


View Tutorial          By: john at 2012-11-15 10:50:33
557. View Comment

please i need the link to download the file required to run the code

View Tutorial          By: kamahsteve at 2012-11-17 10:20:22
558. View Comment

Hi,

I can use this programme to send SMS between modem GSM and android phone?

Thank you


View Tutorial          By: malak at 2012-11-25 17:21:00
559. View Comment

Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:43)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: class SerialPortEventListener
at SerialConnection.<clinit>(SerialConnection.java:14)

How i can handle this exception and errors
please any one help me
or any one send me working code
i am 2nd years student
my email address is : murtazasar@gmail.com


View Tutorial          By: Ghulam Murtaza at 2012-12-12 06:43:58
560. View Comment

gudeveniing!! plz gave me some project title gor java programiing,, then give me output,, and input tank you so much!

View Tutorial          By: ivie at 2012-12-12 11:00:43
561. View Comment

plz can you help me,,,because i need this tomorrow
thank you so much,,

1. Write an application that inputs three integers from the
user and displays the sum, average, product, smallest and largest of the numbers. ClassName: ProjOne

Sample Output:
First number: 34
Second number: 3
Third number: 22

Sum: 59
average: 19.67
product:
smallest: 3
largest: 34

2. Write an application that inputs one number consisting
of five digits from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces each. For example, if the user types in the number 42339, the program should print 4 2 3 3 9. numbers. ClassName: ProjTwo

3. Write program that will ask the user to input the value of an x and y, then output the coordinates (Quadrant)..
Quadrant I - if both values are positive
Quadrant II - if x is negative and y is positive
Quadrant III - if both x and y are negative
Quadrant IV - if x is positive and y is negative...
numbers. ClassName: ProjThree

Sample Output:
Enter x value: 3
Enter y value: 3

Quadrant I


View Tutorial          By: ivie at 2012-12-12 11:20:35
562. View Comment

Hello, I have stupid questions, but I need to ask them.
1. Where I need to enter phone's number to which I want send sms?
2. Can I use this program by useing Eclipse?
3. When I downloaded here are 5 classes, I need to create any additional? Or this program is ready to use?

Thank you for support.


View Tutorial          By: Johnson Edison at 2012-12-13 17:10:57
563. View Comment

Thanks it worked for me after lot of search for COM port..
Hey Johnson u need to create another class with main()
e.g
public class TestClass {
public static void main(String args[]){
SMSClient smsc=new SMSClient(1);
int r=smsc.sendMessage("+919920722648", "Thanks for shopping @Nexus books! Your order is dispatched today @5:07pm");
System.out.println("done! "+r);
}
}


View Tutorial          By: VIRAJ at 2012-12-26 11:56:24
564. View Comment

OK 0
COM1
javax.comm.CommPortIdentifier@16caf43
OK 1
OK 2
OK 3
OK 4
OK 5
modem connected
Sun Jan 20 16:04:20 IST 2013:Sender:<-
--------
Sun Jan 20 16:04:20 IST 2013:Sender:Step:0
>'at
' sent
Sun Jan 20 16:04:20 IST 2013:Sender:<-
--------
Sun Jan 20 16:04:20 IST 2013:Sender:Step:1
>'at+cmgf=1
' sent
Sun Jan 20 16:04:20 IST 2013:Sender:<-
--------
Sun Jan 20 16:04:20 IST 2013:Sender:Step:2
Sun Jan 20 16:04:20 IST 2013:Sender:received ok =-1
Sun Jan 20 16:04:20 IST 2013:Sender:<-
--------
Sun Jan 20 16:04:20 IST 2013:Sender:Step:2
Sun Jan 20 16:04:20 IST 2013:Sender:received ok =-1
Sun Jan 20 16:04:21 IST 2013:Sender:<-
--------
Sun Jan 20 16:04:21 IST 2013:Sender:Step:2
Sun Jan 20 16:04:21 IST 2013:Sender:received ok =-1
Sun Jan 20 16:04:21 IST 2013:Sender:<-
--------
Sun Jan 20 16:04:21 IST 2013:Sender:Step:2
Sun Jan 20 16:04:21 IST 2013:Sender:received ok =-1
Sun Jan 20 16:04:21 IST 2013:Sender:<-
--------
Sun Jan 20 16:04:21 IST 2013:Sender:Step:2
Sun Jan 20 16:04:21 IST 2013:Sender:received ok =-1
Sun Jan 20 16:04:21 IST 2013:Sender:*** time out at step 2***



Actually when i am running this code it is getting the output like this......Actually i connected my Nokia c1-01 phone instead of GSM modem through hyper terminal i am able to send the SMS but when you program was used an out above obtained...please help me sir
thanks in advance


View Tutorial          By: sruthi at 2013-01-20 10:37:41
565. View Comment

Thanks a lot......Plz help me to execute these files in net beans.......Send to mailsanjana2@gmail.com
THANKS IN ADVANCE


View Tutorial          By: Sanjana at 2013-01-26 10:15:12
566. View Comment

thanks a lot ya i got it.................

View Tutorial          By: sruthi at 2013-02-02 08:18:07
567. View Comment

i have connected my phone through bluetooth and used the COM5 port. in the code, where do i need to make the changes? plz help

View Tutorial          By: nikitha at 2013-02-05 09:07:34
568. View Comment

i have connected my phone through bluetooth using COM5 port. can someone please tell me where exactly do i have to make the necessary changes in the code to execute this??
thanks.


View Tutorial          By: nikitha at 2013-02-06 05:05:04
569. View Comment

i am getting d following error:-

SerialConnectionException: Port currently owned by SMSConnector
at SerialConnection.openConnection(SerialConnection.java:90)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:40)
at java.lang.Thread.run(Thread.java:722)

please help


View Tutorial          By: nikitha at 2013-02-07 09:23:12
570. View Comment

can any body help me ??????????
i `he get an error of this .....

Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:34)
at java.lang.Thread.run(Thread.java:636)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:34)
at java.lang.Thread.run(Thread.java:636)
BUILD SUCCESSFUL (total time: 0 seconds)



how to read port name and baud rate in ubuntu in order to change them


>>pls send me a correction through my e-mail address g.hiwetmit@gamil.com
thanks in advance


View Tutorial          By: gkggt at 2013-02-11 12:09:04
571. View Comment

any body who have a full source code of the program of sending message from PC to mobile and form mobile to PC

pls send me these codes to my email address of =>g.hiwetmit@gmail.com


View Tutorial          By: progra at 2013-02-11 12:37:34
572. View Comment

You should give more specification on exactly where to make changes in code. many viewers are finding the same error. I am not able to find where to change my portname.

View Tutorial          By: Abhijit at 2013-03-09 20:14:21
573. View Comment

I writing a main class in the eclipse IDE and calling the api.

can send the full source code to my email address : limzisoon@gmail.com

Thank You


View Tutorial          By: adam lim at 2013-03-11 04:13:51
574. View Comment

im having errors in sPort.sendBreak in SerialConnection.java what should i do? tnx :)

View Tutorial          By: mrrrc at 2013-03-18 08:54:50
575. View Comment

can you send me comm.jar required for this project plz..

View Tutorial          By: gayatri at 2013-03-19 09:53:35
576. View Comment

thanks you're such an angel :) thanks for solving my biggest problem :)

View Tutorial          By: Tanzeela Ali at 2013-04-01 07:42:08
577. View Comment

At my phone number, it showing

5 result ::'at+cmgs="03004604236"


ERROR

'

Why so?


View Tutorial          By: Zafar Iqbal at 2013-04-02 19:48:32
578. View Comment

Please help here...
I tried both 03004604236 & +923004604236 but same error...

5 result ::'at+cmgs="+923004604236"


ERROR

'
Tue Apr 02 15:41:49 VET 2013:com.main.sms.Sender:expectedResult: -1
waiting for message ack with delay of 20000


View Tutorial          By: Zafar Iqbal at 2013-04-02 20:14:29
579. View Comment

please someone share the example to receive message at shahrinrazmi@ymail.com

View Tutorial          By: yem at 2013-04-06 01:52:00
580. View Comment

To install 32 bit java Communication API you can follow following link:-
http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/


View Tutorial          By: Shailendra at 2013-04-06 14:49:44
581. View Comment

Hi...Really nice post..But i got the error like

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at com.sun.mail.util.SharedFileInputStream.main(SharedFileInputStream.java:503)
how can i solve this is one,...?plz help me ...????


View Tutorial          By: Nithya at 2013-04-11 09:37:50
582. View Comment

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:662)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:662)
How to rectify it ??


View Tutorial          By: Augustin at 2013-04-27 11:12:47
583. View Comment

Hi,

i need a program to send sms while there is any upgradation in the websites data(EX: IF it a result publishing website, then i need to know by SMS immediately when the result is published). Can you pls help me with that?


View Tutorial          By: Sindhuja at 2013-05-29 07:07:15
584. View Comment

Hi to all,

I worked on this project and after some hiccups i solved the problem .

Now,
i have full working code for sending sms. If you face any type of problem then mail me or commment here.


Mail me at: ashish18.agrawal@gmail.com


View Tutorial          By: Ashish Agrawal at 2013-06-05 08:38:16
585. View Comment

Hello friends ,
I have downloaded all 5 files and created 6th file...but when i tried to execute its showing the following exception.Please anybody try to solve it...

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventL
istener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at Sender.send(Sender.java:68)
at SMSClient.run(SMSClient.java:39)
at SMSClient.sendMessage(SMSClient.java:30)
at Sample.main(Sample.java:10)
Caused by: java.lang.ClassNotFoundException: javax.comm.SerialPortEventListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: SerialConnection
at Sender.send(Sender.java:68)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: pinnacle at 2013-06-08 13:08:55
586. View Comment

I need some help. I am a programmer - but quite new to Java.

I have copied the supplied source files to my home directory - and installed the comm module.

I have created this small test wrapper (sendSMS.java in my home directory too):

public class sendSMS {
public static void main(String args[]) {
SMSClient smsc = new SMSClient(1);
int ret = smsc.sendMessage("+61410541281", "Test message");
}
}

But when I try to compile I get this:

/home/ron > javac sendSMS.java
sendSMS.java:3: error: cannot find symbol
SMSClient smsc = new SMSClient(1);
^
symbol: class SMSClient
location: class sendSMS
sendSMS.java:3: error: cannot find symbol
SMSClient smsc = new SMSClient(1);
^
symbol: class SMSClient
location: class sendSMS
2 errors

Can someone guide me as to what I need to do?

Cheers,
Ron.


View Tutorial          By: Ron at 2013-06-21 00:58:27
587. View Comment

I am getting following error, I am using samsung mobile as modem
Fri Aug 16 22:20:18 PDT 2013:sms.Sender:*** time out at step 2***
I verified my message center number it is also correct.

I also tried the code in comment#522. the not getting the program is not getting ended.


Please help me in resolving this error
Thanks in advance.


View Tutorial          By: Ashok at 2013-08-17 05:29:02
588. View Comment

plz answr for questions about time out problem whle implmnting this eg:...i am too having the same problem ..its working fine ,but will end up with time out..reply asap plz..

View Tutorial          By: rrai at 2013-08-26 06:06:57
589. View Comment

this code works very well for me , but it runs only once , at any programming media , like java , oracle forms , oracle forms application , i tried alot but it send message only once , then i have to terminate the application and then send it use it again , please suggest me how to use this code again and again , it's big problem for me , thanks

View Tutorial          By: m. usman at 2013-08-31 14:17:22
590. View Comment

plz any one send me the code for sending and receiving message who success to compile and run to this code.plz send me asap on my email-id - ankush10001@gmail.com

View Tutorial          By: ankush at 2013-09-20 07:47:27
591. View Comment

can anybode tell me how can i make my own bluetooth using java.. guide me please.

View Tutorial          By: Prasenjit at 2013-10-11 06:57:13
592. View Comment

Hi... I used this code.But I am troubling that the program shows that message is sent but the number does not received the message. So Please send all code and supporting files on gurulesandip@gmail.com

View Tutorial          By: Sandip Gurule at 2013-10-14 13:34:49
593. View Comment

Hi sir just send me the code sir .... i am interested to add that code in my academic project .....just forward that coding to maruthim29@gmail.com .....it is getting errors it is not coming message....... thanks in advance sir

View Tutorial          By: maruthi at 2013-10-30 05:14:15
594. View Comment

Got follwoing error.


javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:722)


View Tutorial          By: Amit Sinha at 2013-11-26 08:35:00
595. View Comment

hello

my problem is how to intregate sms facility in web applicaTion using jsp ,let me know about which step follow to complete my requirement.

Thanking you
mihir patel


View Tutorial          By: mihir patel at 2013-11-28 18:10:04
596. View Comment

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at demosms.SerialConnection.openConnection(SerialConnection.java:75)
at demosms.Sender.send(Sender.java:47)
at demosms.SMSClient.run(SMSClient.java:44)
at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
at demosms.SerialConnection.openConnection(SerialConnection.java:92)
at demosms.Sender.send(Sender.java:47)
at demosms.SMSClient.run(SMSClient.java:44)
at java.lang.Thread.run(Thread.java:722)
now what i do where to change pls.. it very urgent...


View Tutorial          By: vijay at 2013-12-03 07:32:38
597. View Comment

How to find port names in pc? like COM1 etc ? i wnat to connect gsm mobile to usb port but for sending messages COM port is neccessary ,plz guide me.

View Tutorial          By: layiba at 2013-12-25 08:28:30
598. View Comment

Hi, Can anyone please tell me where we need to change SMSC code and COM port in code ????

View Tutorial          By: Gunjan at 2014-01-02 12:08:41
599. View Comment

Hi,

I am using this code and getting following error:-

recipient: +919940138758 message: hi
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at com.xchanging.sms.SerialConnection.openConnection(SerialConnection.java:72)
at com.xchanging.sms.Sender.send(Sender.java:46)
at com.xchanging.sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.xchanging.sms.SerialConnection.openConnection(SerialConnection.java:89)
at com.xchanging.sms.Sender.send(Sender.java:46)
at com.xchanging.sms.SMSClient.run(SMSClient.java:41)
at java.lang.Thread.run(Unknown Source)
*****************************************************************

I changed the message center number but i dont know where to find port number because i don't have modem rather i am connected via LAN.

So can anyone help me with this please!!!! its kind of urgent


View Tutorial          By: Akanksha at 2014-01-20 10:31:31
600. View Comment

hey plzz help me the code is not working for me....

View Tutorial          By: kuldeep at 2014-02-24 18:16:59
601. View Comment

Please help .... I can't access this code. so any one can send me running code and procedure for running it. I have an error while run this code as:- Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:619)


View Tutorial          By: Sonu Kumar at 2014-02-26 11:31:08
602. View Comment

How can i use this code to send multiple sms using loop...
getting error...connection already in use...


View Tutorial          By: Shoaib at 2014-03-07 19:49:11
603. View Comment

The code gives the following exception :-


Exception in thread "main" java.lang.NoSuchMethodError: main

how to rectify it ....
pls mail full code anjuv405@gmail.com


View Tutorial          By: anju at 2014-03-15 07:02:18
604. View Comment

we are getting an error saying that " the static method sleep(long)from the type thread should be accessed in a static way "
how do we make a thread or a method static....
how to remove multiple markers at a line
we are using java eclipse IDE...


View Tutorial          By: chaitra at 2014-03-20 10:53:02
605. View Comment

Can you send me the full code for sending sms using jsp

View Tutorial          By: Tamizh chelvam at 2014-03-24 17:30:52
606. View Comment

Sir, can i execute the program from windows environment?

comm api is not available for windows...any other alternatives to get my program run from windows 8


View Tutorial          By: krishna at 2014-04-08 07:05:30
607. View Comment

i have created the main class to run the five classes, the code runs good but times out at step 6

done! -1
javax.comm.CommPortIdentifier@a8bf99
OK 1
OK 2
OK 3
OK 4
OK 5
OK 6
Tue Apr 08 17:36:29 EAT 2014:Sender:*** time out at step 6***


i wonder what the problem is and i have changed the smsc number,installed the windows32.dll file and have the comm.jar in my classpath please help i need it in my school final year project
my email dancmuraya10@gmail.com


View Tutorial          By: Muraya at 2014-04-08 14:48:36
608. View Comment

Hiii....i am using windows 8..jdk1.7.51 and netbeans 7.4..
i copied 3 files to apporiate folders
copy comm.jar \jdk1.7.51jre\lib\ext
copy win32com.dll \jdk1.7.51bin
copy javax.comm.properties \jdk1.7.51\jre\lib

but i got this error...
run:
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at sms.SerialConnection.openConnection(SerialConnection.java:69)
at sms.Sender.send(Sender.java:42)
at sms.SMSClient.run(SMSClient.java:36)
at java.lang.Thread.run(Thread.java:744)
java.lang.NullPointerException
at sms.SerialConnection.openConnection(SerialConnection.java:85)
at sms.Sender.send(Sender.java:42)
at sms.SMSClient.run(SMSClient.java:36)
at java.lang.Thread.run(Thread.java:744)


is this code working for windows 8??


View Tutorial          By: Pravin Kamble at 2014-05-03 07:00:12
609. View Comment

I need full code for sending SMS. Please send to my mail.
vemularameshkumar@gmail.com


View Tutorial          By: Ramesh at 2014-05-21 06:54:52
610. View Comment

to get out of time out at step 2 error i used to
Enumeration enumeration= CommPortIdentifier.getPortIdentifiers();

while(enumeration.hasMoreElements()){

System.out.println("ports "+((CommPortIdentifier)enumeration.nextElement()).getName());

}
use this code to check the available ports then try with available com ports one by one now works fine


View Tutorial          By: Niluk at 2014-06-04 05:58:03
611. View Comment

I am geting following exception
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at com.sms.source.SerialConnection.openConnection(SerialConnection.java:75)
at com.sms.source.Sender.send(Sender.java:40)
at com.sms.source.SMSClient.run(SMSClient.java:35)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.sms.source.SerialConnection.openConnection(SerialConnection.java:92)
at com.sms.source.Sender.send(Sender.java:40)
at com.sms.source.SMSClient.run(SMSClient.java:35)
at java.lang.Thread.run(Unknown Source)..

I just wanted to know that can we run this code in LAN network ...


View Tutorial          By: Raviteja at 2014-06-23 12:46:06
612. View Comment

Could any one please send the working source code to my email id ravi.sri5017@gmail.com...

I am using the JAVA 1.7 & I have included the comm.jar .. Code doesn't have any error but when try to execute in Eclipse the above specified exception is coming...
Please help me out...

Thanks in Advance.....


View Tutorial          By: Raviteja at 2014-06-24 05:27:43
613. View Comment

thanks for your tutorial, but how to us it?
i was download comm api.jar but i don't know where is put it.
thanks.


View Tutorial          By: Desman Gea at 2014-07-18 16:54:41
614. View Comment

After a week of struggle, succeeded in sending message. Thanks for source code and comments which helped in fixing issues.

View Tutorial          By: Balaji G L at 2014-07-20 16:05:25
615. View Comment

I am receiving an error as
Error java.lang.NullPointerException
The code is

package p1;
import javax.comm.*;
import p1.SMSClient;
public class test{

private static int sendMessage;

/**
* @param args
*/
public static void main(String[] args) {
try{
SMSClient obj=new SMSClient();
int n=obj.sendMessage("9062322456", "test");
}
catch(Exception e){System.out.println("Error " +e);}

//Error java.lang.NullPointerException
}
}


I would also like to knwo where is the smsc number in these four files and where can i find it in ??
Is it the operators code??


View Tutorial          By: pablo at 2014-08-03 16:10:55
616. View Comment

i got error like this java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: src.SMSClient
at src.DemoSms.main(DemoSms.java:16)


View Tutorial          By: Saliya at 2014-08-22 10:12:16
617. View Comment

Assalamu alaikum saaliya sir,

Could you please tell me the IDE you are using?

and also you may not be included the source file for compilation. so please ceck it out ether you hadded the class file or not.


View Tutorial          By: Jaffer sulaiman at 2014-08-23 06:01:20
618. View Comment

getting the below

Thu Aug 28 23:24:44 IST 2014:Sender:start
Thu Aug 28 23:24:45 IST 2014:Sender:*** time out at step 2***

please help


View Tutorial          By: sudswain at 2014-08-28 17:59:55
619. View Comment

hi,
when i run the code i got the exception like this please help me

java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at com.cts.connection.SerialConnection.openConnection(SerialConnection.java:82)
at com.cts.sender.Sender.send(Sender.java:50)
at com.cts.client.SMSClient.run(SMSClient.java:45)
at java.lang.Thread.run(Unknown Source)


View Tutorial          By: arjun at 2014-09-18 10:25:18
620. View Comment

Hi,
Downloaded all the five files but there is a problem with javax.comm,I can't find this jar file anywhere on the internet as Oracle has discontinued this api.Now help me to get this program running .
Thanks & Regards,
Ratan


View Tutorial          By: Ratan at 2014-09-25 11:38:49
621. View Comment

Please resolve this problems :

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at com.sms.SerialConnection.openConnection(SerialConnection.java:72)
at com.sms.Sender.send(Sender.java:46)
at com.sms.SMSClient.run(SMSClient.java:45)
at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
at com.sms.SerialConnection.openConnection(SerialConnection.java:89)
at com.sms.Sender.send(Sender.java:46)
at com.sms.SMSClient.run(SMSClient.java:45)
at java.lang.Thread.run(Thread.java:722)


View Tutorial          By: madhusudhakar at 2014-10-24 06:11:10
622. View Comment

When i ran the code using 02 GSM X230D dongle i got this error message
*** time out at step 2***


View Tutorial          By: azban at 2014-11-01 11:57:21
623. View Comment

Plz send code of sending sms from java code...
and also send step to running program


View Tutorial          By: Shekh at 2014-11-27 14:18:25
624. View Comment

these is the error when i run these program
can u pls help me with this
pls send me solution on these address
pls it's pretty urgent

chintan_rajpara69@yahoo.in


javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105) at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at sms.SerialConnection.openConnection(SerialConnection.java:73)
at sms.Sender.send(Sender.java:43)
at sms.SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:724)
java.lang.NullPointerException
at sms.SerialConnection.openConnection(SerialConnection.java:91)
at sms.Sender.send(Sender.java:43)
at sms.SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:724)
Error 2 opening registry key HARDWARE\DEVICEMAP\SERIALCOMM
BUILD SUCCESSFUL (total time: 1 second)


View Tutorial          By: chintan rajpara at 2015-01-05 06:46:25
625. View Comment

I am getting error like this:
javax.comm: Error loading javax.comm.properties!
null

java.io.IOException: javax.comm: platform driver class name = null
(Check 'driver' property in javax.comm.properties)

at javax.comm.CommPortIdentifier.loadDriver(CommPortIdentifier.java:243)

at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:46)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: com.sun.comm.Sunr
ayInfo.isSessionActive()Z
at com.sun.comm.SunrayInfo.isSessionActive(Native Method)
at com.sun.comm.Portmapping.registerCommPorts(Portmapping.java:155)
at com.sun.comm.Portmapping.refreshPortDatabase(Portmapping.java:100)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:46)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)

I have tried the things which r mentioned on Oracle site to set the dll, properties and jar setting
https://community.oracle.com/thread/1318406

Still same error, please help.
If anyone got solution please send solution to "santhoshthittayil@gmail.com". Its urgent!!


View Tutorial          By: Santhosh Samban at 2015-01-06 13:47:39
626. View Comment

My code runs smoothly. I have taken some steps for resolving some earlier problems.
Step 1: By the help Of Stackoverflow.com (http://stackoverflow.com/questions/11983764/getting-a-javax-comm-nosuchportexception-when-the-port-exist)

comm.jar should be placed in:

%JAVA_HOME%/lib

%JAVA_HOME%/jre/lib/ext

win32com.dll should be placed in:

%JAVA_HOME%/bin

%JAVA_HOME%/jre/bin

%windir%System32

javax.comm.properties should be placed in:

%JAVA_HOME%/lib

%JAVA_HOME%/jre/lib

Step 2: Run this program to check Port Detection.
import java.io.*;
import java.util.Enumeration;
import javax.comm.*;
public class ListPorts
{
public static void main(String args[]) throws ClassNotFoundException, InstantiationException, IllegalAccessException
{
CommDriver commDriver = null;
String driverName = "com.sun.comm.Win32Driver"; // or get as a JNLP property
commDriver = (CommDriver) Class.forName(driverName).newInstance();
commDriver.initialize();
Enumeration ports = CommPortIdentifier.getPortIdentifiers();
while (ports.hasMoreElements()) {
CommPortIdentifier port = (CommPortIdentifier)ports.nextElement();
String type;
switch (port.getPortType()) {
case CommPortIdentifier.PORT_PARALLEL:
type = "Parallel";
break;
case CommPortIdentifier.PORT_SERIAL:
type = "Serial";
break;
default: /// Shouldn't happen
type = "Unknown";
break;
}
System.out.println(port.getName() + ": " + type);
}
}
}

Step 3: I have paste these four Lines in SerialConnection.java
CommDriver commDriver = null; // line 1
String driverName = "com.sun.comm.Win32Driver"; // // line 2
commDriver = (CommDriver) Class.forName(driverName).newInstance(); // line 3
commDriver.initialize(); // line 4


try {
// System.out.println(parameters.getPortName());
portId = CommPortIdentifier.getPortIdentifier(parameters.getPortName());


Step 4: Changed The Message Center No. in my case Airtel Rajasthan csca="+919829003333";
Step 5: Then I have faced "Time Out at step two". So I have changed the com port in sender.java to Com35. I am using Huawei 3g Dongle.
How to know Com Port- Go to Control Panel->Hardware And Sound->Device Manager->Ports(Com & LPT)
there are two ports were mentioned for Huawei 3g. I firstly used Application Interface But It gives Time Out Error
So I used PC UI Interface(Com35) Then message sent without any problem. Please put These lines in SMSClient.java
public static void main(String args[])
{
SMSClient sms=new SMSClient(1);
sms.sendMessage("+917733853839", "Om");
}


View Tutorial          By: Amit Shrivastava at 2015-01-25 13:48:46
627. View Comment

Hi guys... I try to run the program and I got this prompt
Error loading win32com: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre8\bin\win32com.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

Can anyone help pls? Thx


View Tutorial          By: Glatiuden at 2015-01-31 02:42:37
628. View Comment

Dear Friend, Please send me complete java code to send the message.Also the steps plz.

emailid: pawan1987.jiet@gmail.com


View Tutorial          By: Pawan at 2015-03-22 09:16:37
629. View Comment

comm.jar file for windows not available in sun. can you help me any one?

View Tutorial          By: borus at 2015-03-25 07:19:57
630. View Comment

pls tell me how to run the prog step by step. just send me the mail as running steps of tis program, also i m unable to understand what is the smsc no and where i hve to chnge tis no. in the program. pls mail me as soon as possible..

View Tutorial          By: divakar varshney at 2015-04-02 11:14:34
631. View Comment

hi this is from Ashok....
can you send the source code for sending and receiving from computer through local net work.send to my email id.... dhamerlaashok16@gmail.com


View Tutorial          By: Ashok at 2015-04-16 11:51:51
632. View Comment

@Amit Shrivastava : Dear Amit I have tried the same steps and my port is COM10 but still I get *** time out at step 2*** error, please help me resolve this.

View Tutorial          By: Sanjay at 2015-05-14 19:15:51
633. View Comment

i installed the code in ecllipse,but i have one doubt,i have to work it on tomcat server or not,for these code we need any jar files or not and how to give number of phone number's to the code..
please give me reply
Thank's in advance..
vamsikrishnab9@gmail.com


View Tutorial          By: vamsi at 2015-05-19 10:56:25
634. View Comment

HI All,

I am using this code but for me its coming time out . please anybody help why this error is coming and how to solve it.

Please send code to kumarmuna@hotmail.com


View Tutorial          By: muna at 2015-07-04 12:28:15
635. View Comment

I have loaded allthe 5 java files.But how to implement in the program ? Plz tell me.It is very urgent.PLZ SEND IT MY EMAIL pandiyan.k@integreatz.com

View Tutorial          By: Pandiyan at 2015-08-24 08:02:32
636. View Comment

i am new to SMS, i think i need a device too. Which device should i use. ?

View Tutorial          By: Usman at 2015-10-05 12:06:34

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Emiley J.
Error generating R.java from manifest
ERROR 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client
IIS and Tomcat - how to configure to work together
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php4/lib/php/extensions/no-debug ......
Adding your own Application icon for your J2ME application (jar file)
Creating Menus in Code using VB.net
Traversing all files in a directory using Ruby
Using Proxy to connect to URLs in Ruby
POST a form in Ruby
Reading URL content using Ruby (HTTP)
dRuby client/server mode sample program
Benchmark module in Ruby
encoding and decoding in Ruby using Base64 Module
Module Abbrev in Ruby
Standard Library Packages in Ruby

More Tutorials in Java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Java File
Java String
Count number of vowels, consonants and digits in a String in Java
Reverse a number in Java
Student marks calculation program in Java
Handling Fractions in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Multiple Inheritance sample in Java
Java program using Method Overriding
Java program to check if user input is an even number

More Latest News
Most Viewed Articles (in Java )
How to Send SMS using Java Program (full code sample included)
Stack example in Java - push(), pop(), empty(), search()
Read from a COM port using Java program
FileReader and FileWriter example program in Java
XML and Java - Parsing XML using Java Tutorial
Using StringTokenizer in Java
How to use Iterator in Java
Abstract classes in Java
How to use ArrayList in Java
The Basic Structure of a Simple Java program
Recursion in java
Method Overriding in Java
append() in Java
Method Overloading (function overloading) in Java
Student marks calculation program in Java
Most Emailed Articles (in Java)
Tomcat and httpd configured in port 8080 and 80
Vector in Java - Sample Program
Get user input in Java
FilenameFilter - sample program in Java
How to Send SMS using Java Program (full code sample included)
Update contents of a file within a jar file
Count number of vowels, consonants and digits in a String in Java
Java program using Method Overriding
Using StringTokenizer in Java
How to use ArrayList in Java
MultiLevel Inheritance sample in Java
What is a deadlock and how to avoid it in Java
how to use boolean data type in Java
Extract characters in Java
Supports mobile tournament games