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.
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).
| 1. | hi....can anybody help me....
i need the code to receive sms...
By: nithin ms at 2007-02-23 08:34:01 |
| 2. | HI can you send send sms throgh java program above code doesnt work for me
By: sasikumar at 2007-02-27 01:39:11 |
| 3. | It worked for me. Thanks a lot. Hi Sasikumar, I think you might have forgotten to change the SMSC number in the code.
By: Ramlak at 2007-03-05 01:53:14 |
| 4. | 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
By: ashish at 2007-03-08 20:33:11 |
| 5. | Hi, I need the complete working code for sending and recieving sms using java.
By: Balaji Srikaanth at 2007-03-10 01:22:35 |
| 6. | 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 ...
By: VIKRAM at 2007-03-11 22:56:16 |
| 7. | 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 ....
By: VIKRAM at 2007-03-12 13:34:24 |
| 8. | 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.
By: Ramlak at 2007-03-13 09:22:51 |
| 9. | 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 !!!
By: prathamesh at 2007-03-16 05:57:20 |
| 10. | 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.
By: Ramlak at 2007-03-19 00:46:49 |
| 11. | 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
By: thangaraj at 2007-03-20 12:40:05 |
| 12. | 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.
By: Isaya at 2007-03-26 01:11:59 |
| 13. | 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.
By: Ramlak at 2007-03-29 00:38:55 |
| 14. | 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.
By: Bhushan at 2007-04-27 04:56:00 |
| 15. | 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
By: iniyan at 2007-09-09 06:50:18 |
| 16. | 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 ...
By: ashitha at 2007-09-12 03:09:12 |
| 17. | 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
By: avanti at 2007-10-04 02:30:04 |
| 18. | 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
By: chennareddy at 2007-10-15 00:07:30 |
| 19. | Hello,
Can you please send me the complete code to "RECEIVE" and "SEND" SMS Messages too.
By: criz at 2007-10-16 21:06:30 |
| 20. | 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!!!..
By: chetan at 2007-10-17 08:13:14 |
| 21. | how to execute all the 5 files plz tell me step by step . send it as soon as possible
By: asraf at 2007-11-14 22:29:20 |
| 22. | 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
By: sknand13 at 2007-11-16 03:27:52 |
| 23. | Good one
By: Ravi at 2007-11-19 03:30:40 |
| 24. | 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.(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.(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)
By: Priyadarsan at 2007-11-27 22:31:56 |
| 25. | hi can u send me the complete working code for sending and receiving sms using c++......plz send me asap..
By: gautami at 2007-12-04 01:13:45 |
| 26. | 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
By: mary at 2007-12-16 07:10:58 |
| 27. | Hi it really works fin great in my case.
Thanks Emily.
By: Dnyan at 2007-12-31 02:03:40 |
| 28. | what are the basic requirements to send sms from pc?
By: kanagarajan at 2008-01-02 07:52:44 |
| 29. | 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
By: denisse at 2008-01-07 05:40:25 |
| 30. | 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.
By: Pang at 2008-01-11 00:01:52 |
| 31. | Hello, Can you please send me the complete code to "RECEIVE" and "SEND" SMS Messages too.
By: koksingh at 2008-01-15 00:22:40 |
| 32. | 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
By: lily sandra at 2008-01-15 18:30:33 |
| 33. | 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
By: Munavar at 2008-01-27 22:53:31 |
| 34. | Hi! Ramlak It Working But Sms didnot send why? and Also change the smsc no.
i am using airtel.smsc no +919840011003.
help me.
By: balaji at 2008-01-28 02:41:47 |
| 35. | Hi All could you pls. send the execution of the above programs for sending SMS to a mobile.Thanks in advance
By: subbu at 2008-01-28 03:14:27 |
| 36. | 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..
By: Kathir at 2008-02-08 06:16:51 |
| 37. | 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 .?
By: Enas Sabry at 2008-02-20 04:16:39 |
| 38. | 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
By: deb at 2008-02-20 11:36:51 |
| 39. | 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
By: Jewel at 2008-02-26 21:52:17 |
| 40. | 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
By: ram at 2008-02-26 22:30:13 |
| 41. | 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
By: karthikeyan at 2008-03-14 04:18:52 |
| 42. | Thanks for providing detailed information .
By: CM Mankar at 2008-03-18 04:37:03 |
| 43. | can u please send me the code for sending sms from system to mobile usig java
By: Vicky at 2008-03-20 02:34:27 |
| 44. | 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..
By: Alvin at 2008-03-21 01:12:50 |
| 45. | 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 J2ME Application that shows a form for sending sms and then connects to the above JSP to submit the fields.
By: Vasan at 2008-03-21 01:44:02 |
| 46. | 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.
By: Karuna at 2008-03-30 08:46:00 |
| 47. | 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
By: devi at 2008-04-01 01:02:28 |
| 48. | 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.
By: Ramlak at 2008-04-01 01:51:42 |
| 49. | please somebody tell me how to run this application after instantiating SMSClient.java & also what to pass as mode in its constructor.
By: black Panther at 2008-04-01 02:08:09 |
| 50. | 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.
By: Ramlak at 2008-04-01 02:24:14 |
| 51. | 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
By: Selva at 2008-04-09 07:53:09 |
| 52. | 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
By: Prakash at 2008-04-14 06:22:38 |
| 53. | Hi,
Your COM port is currently in use by some other application. You will have to close all the applications and try again.
By: Ramlak at 2008-04-14 07:29:55 |
| 54. | I have tried that but still getting the same error.
what i am doing wrong ?
thanks ,
Prakash
By: pra at 2008-04-14 21:55:44 |
| 55. | 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....??????
By: Prashant at 2008-04-16 06:08:23 |
| 56. | 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
By: shalini Iyer at 2008-04-22 01:20:32 |
| 57. | 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..
By: mounika at 2008-04-25 02:49:56 |
| 58. | send me SMS RECEIVE code please
By: Butler at 2008-04-26 05:33:40 |
| 59. | 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
By: agnas at 2008-04-26 12:26:52 |
| 60. | 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)
By: mounika at 2008-04-26 14:27:30 |
| 61. | 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.
By: Ramlak at 2008-04-26 20:06:21 |
| 62. | 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)
By: mounika at 2008-04-27 03:05:36 |
| 63. | 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)
By: divya at 2008-04-27 04:12:19 |
| 64. | 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 .
By: Ramlak at 2008-04-27 05:49:42 |
| 65. | Hi divya, You will have to edit the SerialParameters.java file and change to COM3 accordingly.
By: Ramlak at 2008-04-27 05:54:47 |
| 66. | 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
By: TanSW at 2008-04-28 20:14:20 |
| 67. | hey Mounika..did u solve ur problem ??if u did please tell me how to do it..im getting the same error..thanks
By: agnas at 2008-04-28 23:59:37 |
| 68. | 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..
By: agnas at 2008-04-29 16:26:41 |
| 69. | 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)
By: divya at 2008-04-30 23:19:26 |
| 70. | 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.
By: Ramlak at 2008-05-01 22:16:12 |
| 71. | 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
By: agnas at 2008-05-02 01:29:33 |
| 72. | 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
By: Yashovardhan at 2008-05-05 21:42:27 |
| 73. | 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
By: Yash at 2008-05-07 16:59:20 |
| 74. | 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.
By: Ramlak at 2008-05-08 08:28:29 |
| 75. | 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
By: yash at 2008-05-12 16:46:18 |
| 76. | 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
By: yash at 2008-05-13 15:05:49 |
| 77. | can any body help to get the code for receiving SMS
By: ash at 2008-05-15 01:07:19 |
| 78. | 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
By: yash at 2008-05-16 17:43:42 |
| 79. | 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)
By: vjy at 2008-05-26 04:30:59 |
| 80. | 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
By: Jose at 2008-05-26 08:17:48 |
| 81. | 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 ..
By: jen at 2008-05-28 00:22:21 |
| 82. | IS Java Comm API will supports thw windows?
By: SAM at 2008-05-29 03:26:44 |
| 83. | 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
By: Shaiju at 2008-05-30 00:42:12 |
| 84. | hai vij i am also having error what sol u used to rectify it
By: uma at 2008-05-30 01:05:39 |
| 85. | 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.(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.(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
By: Surya at 2008-06-13 07:06:07 |
| 86. | 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.
By: Wei Long at 2008-06-16 19:23:48 |
| 87. | 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
By: shreya.g at 2008-06-23 00:13:52 |
| 88. | Hi wei long, did you download all the five programs? You have to download all and compile.
By: Ramlak at 2008-06-23 03:26:31 |
| 89. | Hi Shreya, in Linux, the COM ports are identified differently (Not COM1 or COM2). Something like String Port= "/dev/ttya";
By: Ramlak at 2008-06-23 03:34:11 |
| 90. | 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
By: Vasundhra at 2008-06-24 07:04:42 |
| 91. | 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? :)
By: Duong D. Thien at 2008-06-25 06:09:07 |
| 92. | Thanks a lot for the code...
thats working fine...
By: Rahul at 2008-06-28 14:16:10 |
| 93. | 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
By: ganesh at 2008-07-01 05:35:31 |
| 94. | 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
By: abhi at 2008-07-09 07:28:54 |
| 95. | 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
By: Albin at 2008-07-10 23:49:33 |
| 96. | 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? :)
By: venkat c s at 2008-07-21 12:15:46 |
| 97. | 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..
By: dana at 2008-08-05 03:38:48 |
| 98. | 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
By: Chandra at 2008-08-07 10:35:59 |
| 99. | Hi Chandra, you will have to download the winrar tool (http://www.rarlab.com/download.htm). Then you can open .rar files.
By: Ramlak at 2008-08-08 00:14:40 |
| 100. | How do i get tht GSM Connection .Can any one give the details of the sending SMS from jav program in detail
By: srinivas raju at 2008-08-08 02:50:02 |
| 101. | 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
By: Parveen at 2008-08-08 13:23:20 |
| 102. | 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.
By: Souvik Bhattacharya at 2008-08-18 00:21:31 |
| 103. | 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
By: ritu at 2008-08-21 11:00:49 |
| 104. | this site is good, can anyone plz suggest me how to write a java code for sending messages in unicode using at commands?
By: Prithvi at 2008-08-27 01:09:56 |
| 105. | 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
By: VageR at 2008-09-02 06:33:59 |
| 106. | Hi Rahul,How to run this program kindly send me the procedures as well.pls.
By: Das at 2008-09-04 00:53:02 |
| 107. | 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?
By: NISHAD at 2008-09-06 09:23:15 |
| 108. | I want to download that 5 sms sending program .from where i can download them?
By: anwar at 2008-09-08 02:22:06 |
| 109. | 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. . . .
By: Rahul at 2008-09-09 04:05:35 |
| 110. | 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
By: mazen at 2008-09-09 04:55:16 |
| 111. | Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: Can't find library SolarisSerialParallel (SolarisSerialParallel.dll) in java.library.path
By: Sony at 2008-09-10 01:28:52 |
| 112. | 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.
By: raj at 2008-09-16 22:55:40 |
| 113. | can we use this code in a web application. your help in this regard is appreciated. thanks in advance
By: phani at 2008-09-17 06:15:26 |
| 114. | 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.
By: Ramlak at 2008-09-17 08:24:21 |
| 115. | hello friends .. am looking for the java code that allow me to send and receive pictures ... please try to help
By: ahmed at 2008-09-18 21:48:21 |
| 116. | can you please e mail me a code about hotel reservation
By: princeton at 2008-09-19 02:32:13 |
| 117. | Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path
javax.comm.NoSuchPortException
I am getting the above errors please help me.
By: Dinesh557 at 2008-09-23 04:18:47 |
| 118. | 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
By: Dinesh557 at 2008-09-23 05:14:09 |
| 119. | 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
By: ganesh kumar at 2008-09-23 05:27:16 |
| 120. | 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.(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.(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)
By: Rohan at 2008-09-23 05:52:31 |
| 121. | how to execute all these five programms tell me step by step in detail.
plzz reply as early as possible!!!!!!!!!
By: shweta at 2008-09-24 07:35:22 |
| 122. | Hi, I need the complete working code for recieving sms using java.
issam_lachheb@libero.it
By: Issam at 2008-09-26 01:24:04 |
| 123. | 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
By: oded at 2008-09-28 03:33:33 |
| 124. | 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?
By: oded at 2008-09-28 05:41:35 |
| 125. | 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
By: oded at 2008-09-29 00:32:16 |
| 126. | 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...
By: Sri Bhavani at 2008-09-30 00:18:38 |
| 127. | Who can send me the program and source to call this 5 x file?
By: Michael Chon at 2008-10-04 21:03:30 |
| 128. | 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
By: MCHON at 2008-10-05 12:36:42 |
| 129. | 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)
By: nancy kapoor at 2008-10-07 14:26:21 |
| 130. | 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"
By: Michael Chon at 2008-10-08 10:35:55 |
| 131. | 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?
By: Arif at 2008-10-09 11:29:14 |
| 132. | Does your Siemens CX75 can show up as COM port device on your PC? mchon123@gmail.com
By: mchon at 2008-10-10 18:24:11 |
| 133. | can anybody tell me the full code for sending sms from pc to mobile...plz reply at my mail id-shikha1311@gmail.com
By: shikha at 2008-10-13 11:43:40 |
| 134. | 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..
By: Balraj Selvakumar at 2008-10-14 03:12:20 |
| 135. | 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 :)
By: fatwa perdana at 2008-10-15 03:27:49 |
| 136. | 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.
By: ROHAN at 2008-10-17 00:55:46 |
| 137. | Hi, I need the library of Communication API, to run on Windows Platform. Please tell me the URL for the above said cause
By: arun at 2008-10-23 05:10:06 |
| 138. | i need jsp code for free sms send.
if anybody know that send to .
please send me.
By: Harish at 2008-10-30 03:20:31 |
| 139. | 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
By: Taha Sharif at 2008-10-31 00:37:15 |
| 140. | 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
By: Protik Basu at 2008-10-31 05:30:36 |
| 141. | HI,
I want to send an sms via website to mobile can anybody has send me the same code or how to do it...
By: Hemant at 2008-11-04 05:26:30 |
| 142. | 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
By: raj at 2008-11-04 21:46:12 |
| 143. | 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..
By: Divya at 2008-11-06 22:46:12 |
| 144. | 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.
By: Amruta at 2008-11-07 23:56:17 |
| 145. | 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
By: Ashraf Abu Aisheh at 2008-11-09 14:56:39 |
| 146. | hi!!!!!!!!! MR. RAMLAK will u plz tell the methode how to impliment ^th program as you told abone which methode i have to call.
By: balwant at 2008-11-10 17:19:44 |
| 147. | Hi,Please send me running code for sending sms from Pc @ rahul.patil@seemoredata.com
By: rahul at 2008-11-14 05:15:02 |
| 148. | 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...!!
By: henrynawaung at 2008-11-14 06:41:13 |
| 149. | 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?
By: Leshqo at 2008-11-14 07:09:13 |
| 150. | Hi Kartikeyan and all,
can you please send me the detailed working code and how it works on checkoutitsme@gmail.com
Thanks in advance.
By: Piyush at 2008-11-14 07:24:16 |
| 151. | Hi
Anybody plz send me the sms sending html code. I want to add it my blog plz help me...
v4venky@ymail.com
By: Venky at 2008-11-19 08:33:22 |
| 152. | Hi, from where i can download javax.comm API jar file.
By: Chandra at 2008-11-19 11:49:46 |
| 153. | Can anybody send the full working code for sending the SMS. My email
a_kalaskar@transworld-compressor.com
By: Atul at 2008-11-26 04:47:51 |
| 154. | 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
By: Ashraf Abu Aisheh at 2008-12-01 13:52:42 |
| 155. | 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.
By: gomathi at 2008-12-08 09:04:35 |
| 156. | 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
By: rajesh at 2008-12-10 00:16:10 |
| 157. | that was WMC modem i think not Beetel ADSL 2+ modem.plz rectify
By: chandu at 2008-12-12 22:05:16 |
| 158. | 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.
By: rajesh at 2008-12-15 01:56:35 |
| 159. | would you please send me a code that can be run please manvaputra@yahoo.com
By: putra at 2008-12-17 13:26:26 |
| 160. | 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
By: anitha at 2008-12-17 21:37:36 |
| 161. | 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
By: srikar at 2008-12-18 02:05:56 |
| 162. | 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
By: RobustTm at 2008-12-18 23:19:46 |
| 163. | Hi Dear i need help how to send SMS using java
By: NasirAftab at 2008-12-23 07:18:21 |
| 164. | 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
By: raghu at 2008-12-26 03:15:52 |
| 165. | 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
By: raghu at 2008-12-26 22:40:12 |
| 166. | 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???
By: rima at 2008-12-27 22:22:03 |
| 167. | Hi Rima,
Check out http://forums.sun.com/thread.jspa?threadID=605232 to solve your issue.
By: Ramlak at 2008-12-28 03:00:01 |
| 168. | 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....
By: Ronized at 2008-12-29 16:53:33 |
| 169. | Hi MR,are you have java code to read sms...... thank,please help me
By: ronized at 2008-12-29 16:59:27 |
| 170. | 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
By: Meenu at 2008-12-30 02:46:54 |
| 171. | are you have java code to read sms from gsm modem, please send to me (ronizedsynch@yahoo.com) thank b4.. ^-^
By: ronized at 2009-01-01 20:36:24 |
| 172. | THNX RAMLAK..
HEY RAMLAK I HAVE A LOT OF DOUBTS REGARDING JAVA RELATED TO JAVA COMMS PACKAGE..MY ID is
vinod1987in@yahoo.com
By: Vinod at 2009-01-02 22:04:40 |
| 173. | hello sir i want to know how to run this pogram as it is giving main error
By: Pranjay at 2009-01-07 03:33:45 |
| 174. | 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 link 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.
By: raghu at 2009-01-07 05:45:33 |
| 175. | 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
By: Shiv Kumar at 2009-01-17 02:01:01 |
| 176. | ----- 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)
By: pushpam at 2009-01-23 06:14:07 |
| 177. | Can u please help me. I run the SerialConnection program. But i got errors.
theerror s package javax.comm not found in import
By: Praseetha.K at 2009-01-23 09:34:35 |
| 178. | 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 ...
By: Lourdu Felix at 2009-01-26 03:37:53 |
| 179. | 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?
By: xenogaz at 2009-01-28 02:43:50 |
| 180. | 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.
By: Braj at 2009-01-29 08:50:33 |
| 181. | 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.
By: Ramlak at 2009-01-29 20:03:14 |
| 182. | 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.
By: Braj at 2009-02-07 03:31:13 |
| 183. | can anyone send me how 2 sms from java code......
rkraju.n@gmail.com
I willbe more thankfull if u send me that...
By: ramesh at 2009-02-07 04:26:06 |
| 184. | 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!
By: anne226 at 2009-02-10 23:58:46 |
| 185. | 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!
By: anne226 at 2009-02-11 10:24:21 |
| 186. | 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
By: Arvind at 2009-02-14 10:24:37 |
| 187. | 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.
By: Ishmayel at 2009-02-19 21:27:14 |
| 188. | 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.(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.(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
By: jugal at 2009-02-20 02:14:23 |
| 189. | 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)
By: jugal at 2009-02-20 08:22:31 |
| 190. | 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
so what can I do now??
I realy need to send sms with java ..
plz help ..
By: Eng.A at 2009-02-21 03:11:02 |
| 191. |
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 ?
By: Eng at 2009-02-21 03:53:29 |
| 192. | 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
By: shrinivas at 2009-03-07 23:16:51 |
| 193. | Can anyone help me.I need basic requirements with code to send sms from pc.
By: Elaiyaraja at 2009-03-09 03:47:46 |
| 194. | Copy the javax.comm.properties into your $JAVA_HOME/jre/lib folder
By: sophie at 2009-03-11 08:23:25 |
| 195. | 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 ...
By: swetha at 2009-03-12 07:19:23 |
| 196. | 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
By: nayeem at 2009-03-13 08:47:27 |
| 197. | Can I use my Nokia 6300 as my GSM Modem???? Please reply asap.... tnx in advance
By: deKi at 2009-03-17 03:54:59 |
| 198. | 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...
By: Aman Aggarwal at 2009-03-22 22:42:52 |
| 199. | 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!!!!
By: Ashish at 2009-03-23 03:10:22 |
| 200. | 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.
By: AARON VICUÑA at 2009-03-24 05:20:24 |
| 201. | 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!!!
By: Ashish at 2009-03-25 04:28:25 |
| 202. | 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
By: Chandra Shekhar at 2009-04-01 00:21:54 |
| 203. | 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
By: dhanunjay at 2009-04-01 00:31:17 |
| 204. | hi.. all.. its working fine for me... thank u very much...
By: Padmaraj at 2009-04-01 09:42:29 |
| 205. | hi all i receive below error can any one help me please?
Exception in thread "main" java.lang.NoSuchMethodError: main
Thank you !
By: Purushothaman at 2009-04-03 17:38:42 |
| 206. | HELP! HELP! HELP!
i got an time out at step 3. please someone help :'(
Sumit
By: sumit at 2009-04-03 20:19:51 |
| 207. | Hi,
I am using Nokia 3110c connected to PC. But the program stalls at Step 0 itself. And then throws timeout .
Please help
By: Satish Raj at 2009-04-04 07:32:54 |
| 208. | Please assist me in getting the code to read messages from mobile using mobile's GSM modem.
By: Jaydatta at 2009-04-05 23:24:57 |
| 209. | 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
By: amit doshi at 2009-04-06 02:00:28 |
| 210. | 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
By: srinivas at 2009-04-06 03:14:57 |
| 211. | 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
By: Ashish at 2009-04-07 06:57:31 |
| 212. | Plz send me steps to configure and run project to send sms.
By: sandeep kale at 2009-04-08 07:23:45 |
| 213. | 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
By: sandeep das at 2009-04-09 11:12:16 |
| 214. | 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!
By: uu at 2009-04-09 18:10:13 |
| 215. | 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!!
By: Purushothaman at 2009-04-10 07:18:38 |
| 216. | 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!!!
By: Anonymous at 2009-04-11 04:19:28 |
| 217. | 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
By: sandeep das at 2009-04-11 10:42:58 |
| 218. | 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..
By: Amirtharaj at 2009-04-14 05:26:26 |
| 219. | 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
By: Anitha at 2009-04-20 03:12:23 |
| 220. | 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 ;)
By: Lina at 2009-05-02 13:23:33 |
| 221. | 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
By: chandrasekaran at 2009-05-04 09:00:47 |
| 222. | 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
By: Damodhar at 2009-05-06 04:12:33 |
| 223. | 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...
By: mahipal at 2009-05-12 10:30:57 |
| 224. | 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
By: Jothi at 2009-05-15 03:19:54 |
| 225. | 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
By: Safi at 2009-05-22 22:32:04 |
| 226. | 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
By: yasmeen at 2009-05-25 02:42:44 |
| 227. | hi....I have a project, and need help please. I need the code to send messages from pc to cell..
By: kelvin65 at 2009-05-25 10:03:07 |
| 228. | 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
By: amit singh at 2009-05-27 06:54:20 |
| 229. | 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
By: deepika Mittal at 2009-05-30 06:55:22 |
| 230. | 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
By: Prabhash V S at 2009-06-03 06:40:55 |
| 231. | 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...............
By: Prabhash at 2009-06-03 06:45:26 |
| 232. | 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.
By: Gandhi at 2009-06-04 06:20:48 |
| 233. | can any body help me how to execute this code ............
By: nikhil at 2009-06-04 23:10:30 |
| 234. | can any body explain me how to execute the program step by step
my id is nikhil_muddasani@yahoo.com
By: nikhil at 2009-06-04 23:56:11 |
| 235. | Where to put the smsc number. I am using vodafone number....
pleaze................tell me....very urgent....
By: gopi at 2009-06-11 22:07:49 |
| 236. | 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!
By: alpha at 2009-06-14 03:20:41 |
| 237. | 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
By: Ajay Kumar Barik at 2009-06-15 02:28:47 |
| 238. | What is SMSC and CSCA number? , in which JAVA file SMSC is declared.
By: sampath at 2009-06-19 07:01:31 |
| 239. | hi , sending of sms is failing. Please help me in this regard. it's very urgent please.
By: sudhakar at 2009-06-19 09:39:55 |
| 240. | 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...
By: Tomy at 2009-06-24 02:59:57 |
| 241. | how to downlow the different 5 files please !!
By: Agnin at 2009-06-24 05:29:09 |
| 242. | 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.
By: Angelia at 2009-06-25 18:54:28 |
| 243. | 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
By: Omer at 2009-06-30 06:05:17 |
| 244. | 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.
By: Haseeb at 2009-07-01 04:59:13 |
| 245. | 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.
By: chiru at 2009-07-03 03:29:18 |
| 246. | 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
By: Hi, at 2009-07-06 01:09:35 |
| 247. | Hi,
Any body tell me how to these execute these 5 java files.
please..
thanks in adavance..
By: mari at 2009-07-09 02:02:12 |
| 248. | 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.
By: Fionna at 2009-07-10 01:02:11 |
| 249. | 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
By: sravan at 2009-07-11 11:17:45 |
| 250. | 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.
By: Fionna at 2009-07-13 00:34:45 |
| 251. | 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
By: Utsav at 2009-07-14 01:29:06 |
| 252. | 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
By: Yanosh at 2009-07-16 05:19:38 |
| 253. | 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
By: Yanosh at 2009-07-16 06:00:14 |
| 254. | 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)
By: rajani at 2009-07-18 05:44:55 |
| 255. | 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
By: vijay bhanu at 2009-07-18 08:57:57 |
| 256. | 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
By: nikhil at 2009-07-22 05:58:55 |
| 257. | how to solve this while i am running the code it is giving
*** time out at step 6***
By: nikhilmuddasani at 2009-07-23 04:32:31 |
| 258. | i want to Java coding's immediately
By: vignesh at 2009-07-29 07:02:23 |
| 259. | Any Solution for below Error,
*** time out at step 6***
By: Mazher at 2009-08-02 02:08:52 |
| 260. | hey i need a sms recieving code....
By: Kishore at 2009-08-06 09:11:13 |
| 261. | 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
By: spartan at 2009-08-08 08:42:35 |
| 262. | I need full code for how to connnect pc to mobile using java coding..
By: Vijay at 2009-08-23 23:38:05 |
| 263. | 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
By: chinnadurai at 2009-08-26 23:58:54 |
| 264. | hi,
i got an exception :in thread main "noSuchMethodError" :main
can u help me plzzzzzzzzzzzz my mail id venugopalcse130@gmail.com
By: N.Venugopal at 2009-08-27 05:25:07 |
| 265. | Hi all people...If i need to read a sms from the memory of the SIM card....how could be the code in java??
By: Omarsi12 at 2009-09-06 17:11:15 |
| 266. | i need to use sms and to creat using java so it is will sample project for me.so thank u
By: Abdulkerim at 2009-09-07 05:29:15 |
| 267. | 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.(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
By: yash at 2009-09-16 06:12:32 |
| 268. | 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..
By: dinesh at 2009-09-16 10:25:37 |
| 269. | 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
By: Parthasarathi at 2009-09-21 02:09:49 |
| 270. | 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....
By: charan at 2009-09-23 09:13:22 |
| 271. | 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
By: Balaji at 2009-09-23 22:54:06 |
| 272. | I want to use the same code in c++,
Can anybody have any Idea how to convert this java code in c++.
Thanks
By: vijay at 2009-09-26 00:47:02 |
| 273. | 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...
By: Sunpenn at 2009-10-12 03:57:58 |
| 274. | Its working perfectly for me.Thanks so much for providing such a wonderful code.
By: Sunpenn at 2009-10-13 00:53:09 |
| 275. | 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
By: kay at 2009-10-15 03:06:10 |
| 276. | 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.
By: Pugal at 2009-10-15 03:38:08 |
| 277. | 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
By: Shanalal Kasim at 2009-10-19 08:31:03 |
| 278. | 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
By: abdul kadir at 2009-10-23 05:37:46 |
| 279. | 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"
By: arunram at 2009-10-28 01:42:51 |
| 280. | 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
By: anshul at 2009-10-28 15:10:10 |
| 281. | i want ask whether how do i run the application?
By: unknown at 2009-10-29 21:13:03 |
| 282. | 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
By: shikha at 2009-11-03 10:42:34 |
| 283. | 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
By: Archna at 2009-11-06 03:23:14 |
| 284. | 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 ...
By: RaghunathaReddy.P at 2009-11-06 23:40:05 |
| 285. | 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
By: bornwithpowers at 2009-11-11 04:48:21 |
| 286. | i get exception NoSuchPortException. i tried on different pc but got the same. please somebody help me in this.
By: harryjoy at 2009-11-22 05:52:48 |
| 287. | 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......
By: kasi at 2009-11-25 23:52:56 |
| 288. | 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
By: karan at 2009-11-26 11:29:56 |
| 289. | 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
By: Pavan at 2009-11-26 21:31:22 |
| 290. | please help me how to run this program..
By: khairie at 2009-12-01 22:43:08 |
| 291. | 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
By: Richa Bhatia at 2009-12-07 22:55:54 |
| 292. | 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?
By: Richa Bhatia at 2009-12-08 22:33:36 |
| 293. | 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
By: Dhananjay at 2009-12-09 10:20:30 |
| 294. | 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
By: Jeevan at 2009-12-19 09:35:06 |
| 295. | 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
By: samir at 2009-12-22 00:42:52 |
| 296. | Could you please send me steps to execute the code .
Thanks in advance.
By: Roshan at 2009-12-23 21:32:29 |
| 297. | 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:)
By: robert at 2009-12-28 08:37:49 |
| 298. | 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
By: hemendra at 2009-12-28 21:59:34 |
| 299. | 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--
By: bryan at 2009-12-29 05:59:21 |
| 300. | can i connect mobile phone to usb port instead of this?
By: Nevil at 2010-01-11 00:19:17 |
| 301. | Post your errors, so that others may help you my friend.
By: yogesh at 2010-01-12 00:45:42 |
| 302. | This code rocks!! any one having any trouble should read thread carefully !!
By: Ankur at 2010-01-22 06:37:10 |
| 303. | 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"
By: raju at 2010-01-22 08:28:45 |
| 304. | hi
im trying to run this project and i keep geting this erro
! smsclient.SMSClient class wasn´t found in SMSClient project.
has anybody faced thesame problem?
please help please
By: VoyRufino at 2010-01-26 10:03:11 |
| 305. | 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
By: GAURAV MODI at 2010-01-29 02:12:13 |
| 306. | Can anybody tell me how to send and receive SMS using JAVA ME
By: Bharat Lahori at 2010-02-04 07:14:19 |
| 307. | I an going to try this code.
By: Bhagawati Prasad at 2010-02-06 02:45:10 |
| 308. | 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
By: vinit jain at 2010-02-09 12:16:01 |
| 309. | 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.
By: Shaik Allabakash at 2010-02-09 19:38:10 |
| 310. | 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
By: Dse90 at 2010-02-10 04:28:34 |
| 311. | hi..it's very nice..can you send me the version for recieve sms?
my mail is bellasituazione@hotmail.it
By: daniel81 at 2010-02-11 09:19:36 |
| 312. | hi
By: raj at 2010-02-12 02:48:09 |
| 313. | 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.
By: DSE90 at 2010-02-12 12:05:57 |
| 314. | Sir I want to information about "how to send sms using Java Api ".
please send information about sending sms using java api.
By: murthy at 2010-02-17 07:15:18 |
| 315. | i need help in java
By: arjun tanwar at 2010-02-17 20:58:55 |
| 316. | 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
By: Ajit at 2010-02-17 23:09:47 |
| 317. | 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
By: shafi at 2010-02-18 08:28:49 |
| 318. | 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!!!
By: Omar_sito12 at 2010-02-22 08:46:18 |
| 319. | Can any one tell me whether to add any external jar files?If yes please provide me the related websites...Thanks..
By: Abhi at 2010-02-23 05:25:29 |
| 320. | Can anybody explain me what are the minimum settings we need to do before running this code.
By: Ramesh at 2010-02-25 10:28:42 |
| 321. | 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...............
By: bhamre sandeep at 2010-02-28 03:02:53 |
| 322. | 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
By: bhamre sandeep at 2010-02-28 04:18:36 |
| 323. | Please guys i need sms.zip. I tried SMS.RAR but all files are corrupted. Thanks a lot.
By: Waseem at 2010-03-06 15:48:40 |
| 324. | how we can store a pdf file into database
how we can get information from pdftables
By: neelima at 2010-03-10 23:46:52 |
| 325. | plz wait for your solution
By: Desai Rajesh at 2010-03-11 22:00:32 |
| 326. | I need JSP Code to send SMS to mobile.
By: nana at 2010-03-12 22:43:22 |
| 327. | 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
By: narayanan at 2010-03-17 05:56:21 |
| 328. | 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
By: Nisha at 2010-03-22 00:38:42 |
| 329. | Can anybody help me to send the code for email sending.
please.
By: satendra at 2010-03-23 02:46:18 |
| 330. | Can any budy plz send me a source code of Sending a message.
By: vilas at 2010-03-23 20:38:08 |
| 331. | I am doing a project to for sending sms from the server.I feel difficult to develop plz help me
By: visalakshi at 2010-03-30 20:55:50 |
| 332. | 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
By: Alton at 2010-04-02 22:36:57 |
| 333. | 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
By: nobody at 2010-04-06 20:25:54 |
| 334. | 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)
By: prasad raju v at 2010-04-08 04:20:10 |
| 335. | 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)
By: Vikram Subbiah at 2010-04-12 02:09:36 |
| 336. | 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
By: Nishanth Chandran Poduval at 2010-04-15 00:31:33 |
| 337. | pls send to me comm.jar file , its not in sun site available in windows
By: sanjeewa at 2010-04-18 23:17:37 |
| 338. | 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
By: Muthumani at 2010-04-19 05:24:17 |
| 339. | 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)
By: muhin at 2010-04-19 21:37:02 |
| 340. | 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)
By: puneet at 2010-04-22 10:22:18 |
| 341. | 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)
By: Puneet at 2010-04-23 06:14:28 |
| 342. | 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
By: Matt at 2010-04-29 14:47:11 |
| 343. | 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
By: Matt at 2010-04-30 09:52:16 |
| 344. | How to send to multiple mobiles at a time
By: rakesh at 2010-04-30 10:33:51 |
| 345. | i need the code
By: C.Ajith Franklin at 2010-05-05 06:04:40 |
| 346. | 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...............
By: Raheela at 2010-05-06 03:11:36 |
| 347. | 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
By: Vikas sharma at 2010-05-08 01:09:31 |
| 348. | 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
By: manav at 2010-05-09 12:54:52 |
| 349. | 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)
By: Rahi at 2010-05-11 04:39:33 |
| 350. | 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.
By: prasanna kumar v at 2010-05-15 02:55:59 |
| 351. | 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.
By: primus at 2010-05-19 04:46:18 |
| 352. | 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
By: prakash at 2010-05-24 07:27:46 |
| 353. | 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
By: prakash at 2010-05-24 09:14:59 |
| 354. | 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.............
By: amar usakoyal at 2010-05-25 03:31:16 |
| 355. | 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
By: jm at 2010-05-31 01:42:28 |
| 356. | 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
By: Parthasarathy at 2010-06-02 08:13:12 |
| 357. | 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...
By: Mudra at 2010-06-04 15:04:55 |
| 358. | 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,
By: Carlos at 2010-06-14 02:42:53 |
| 359. | 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
By: Ajit at 2010-06-17 07:38:51 |
| 360. | 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
By: swathi at 2010-06-24 05:18:28 |
| 361. | 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,
By: Sanjay at 2010-06-29 04:48:16 |
| 362. | 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
By: sruthy at 2010-07-07 03:44:27 |
| 363. | 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........
By: prerna at 2010-07-09 20:15:48 |
| 364. | 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
By: Praveen at 2010-07-14 01:05:37 |
| 365. | 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.
By: praveen at 2010-07-14 04:47:41 |
| 366. | Good stuff.
By: flazwbooks at 2010-07-18 05:50:50 |
| 367. | 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
By: sruthy at 2010-07-23 03:29:39 |
| 368. | can any one plz send me the message passing coding which is used in mobiles?
thank u..
my email id sowmya.veeramani@gmail.com
By: sowmya at 2010-08-02 04:57:22 |
| 369. | 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
By: Ahmed Ghazey at 2010-08-09 01:55:48 |
| 370. | Can anybody send full code for sending and receiving sms to jayapalsahadevan@gmail.com this id.
Thanks in advance
By: Jayapal at 2010-08-12 11:41:38 |
| 371. | 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 .
By: Shipra Malik at 2010-08-17 03:32:34 |
| 372. | 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
By: Koolkabin at 2010-08-20 01:11:27 |
| 373. | 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
By: suresh at 2010-08-22 03:29:06 |
| 374. | Can anybody send me the java full code for sending and receiving sms to davidhe@live.com.au
Thanks in advance
By: David at 2010-08-22 22:57:38 |