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



Ask a Question

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. can you clearly reveal how to create crystal repor
View Tutorial          By: halim at 2011-07-02 00:28:48

2. hay is there any way to perform operation or calcu
View Tutorial          By: neha at 2009-11-20 08:29:45

3. Good Job.
Keep up the good work .

View Tutorial          By: Syed Imran at 2010-11-27 06:54:36

4. Sir if i wnna to take the input from user then it
View Tutorial          By: Vivek at 2011-05-14 05:56:30

5. this site and document good for the starter. Thank
View Tutorial          By: davit off at 2011-04-17 06:57:02

6. thank u it hlep me a lot gr8.
View Tutorial          By: harish at 2012-03-31 14:34:50

7. I need how to connect with database connection in
View Tutorial          By: BenGunn at 2010-01-12 03:33:44

8. Thanks for the clear explanation..
Really h

View Tutorial          By: Swj at 2011-12-30 05:55:26

9. @Vaibhavn if you use an IP instead of a host name
View Tutorial          By: RDMA at 2011-01-04 14:30:15

10. The same article is originally given on struts apa
View Tutorial          By: Fact at 2011-05-09 16:19:18