Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : raavi.surendra

Comment Added at : 2011-12-29 05:34:06

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi..All ...to run this programs.first of of all u need one GSM modem or Mobile phone and second thing is ,lot of people are asking this."i'm not able to compile ,it is getting error javax.comm " like this


mport javax.comm.*;
^
.\SerialConnection.java:12: cannot find symbol
symbol: class SerialPortEventListener
public class SerialConnection implements SerialPortEventListener,
^
.\SerialConnection.java:13: cannot find symbol
symbol: class CommPortOwnershipListener
CommPortOwnershipListener {
^
.\SerialParameters.java:32: package javax.comm does not exist
import javax.comm.*;
^
.\SerialConnection.java:25: cannot find symbol
symbol : class CommPortIdentifier
location: class SerialConnection
private CommPortIdentifier portId;
^
.\SerialConnection.java:26: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
private SerialPort sPort;
^
.\SerialConnection.java:241: cannot find symbol
symbol : class SerialPortEvent
location: class SerialConnection
public void serialEvent(SerialPortEvent e) {
^
.\SerialConnection.java:70: cannot find symbol
symbol : variable CommPortIdentifier
location: class SerialConnection
portId = CommPortIdentifier.getPortIdentifier(parameters.getPor
());
^
.\SerialConnection.java:71: cannot find symbol
symbol : class NoSuchPortException
location: class SerialConnection
} catch (NoSuchPortException e) {
^
.\SerialConnection.java:87: cannot find symbol
symbol : class SerialPort
location: class SerialConnection
sPort = (SerialPort)portId.open("SMSConnector", 30000);
^
.\SerialConnection.java:88: cannot find symbol
symbol : class PortInUseException
location: class SerialConnection
} catch (PortInUseException e) {
^
.\SerialConnection.java:139: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:169: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:181: cannot find symbol
symbol : class UnsupportedCommOperationException
location: class SerialConnection
} catch (UnsupportedCommOperationException e) {
^
.\SerialConnection.java:252: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.DATA_AVAILABLE:
^
.\SerialConnection.java:276: cannot find symbol
symbol : variable SerialPortEvent
location: class SerialConnection
case SerialPortEvent.BI:
^
.\SerialParameters.java:54: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
.\SerialParameters.java:55: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.FLOWCONTROL_NONE,
^
.\SerialParameters.java:56: cannot find symbol
symbol : variable SerialPort
location: class SerialParameters
SerialPort.DATABITS_8,


for this u need to have comm.jar in your classpath.....


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Nice example of System.arraycopy()function. Thank
View Tutorial          By: Rahul Raj at 2015-08-17 03:11:44

2. grt tutorial
View Tutorial          By: sss at 2009-08-30 03:33:13

3. Norman, it would be good to credit where your writ
View Tutorial          By: K&R at 2014-03-20 11:41:56

4. hi I am execute this code But message can't send <
View Tutorial          By: Sudhir Patil at 2011-02-01 10:28:28

5. Can you send me the full code for sending sms usin
View Tutorial          By: Tamizh chelvam at 2014-03-24 17:30:52

6. why java from two to the power 7 bit was upgraded
View Tutorial          By: avinash at 2013-05-28 08:34:24

7. This came out of a book
View Tutorial          By: Kyle Bradley at 2010-04-12 19:48:12

8. send me SMS RECEIVE code please
View Tutorial          By: Butler at 2008-04-26 05:33:40

9. I tried to use excute this code to retreive record
View Tutorial          By: PL at 2013-08-27 02:58:55

10. very simple and nice examples for begineer...
View Tutorial          By: sarhand at 2010-04-21 00:57:23