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. CAN I ASK A FORMULA OF FOR MAKING A CALCULATOR USI
View Tutorial          By: JUNER at 2011-08-17 03:33:02

2. i Want the Flow Chart and code for the mobile Cale
View Tutorial          By: Sudip Khatiwara at 2010-03-15 04:10:41

3. Can u please tell me how to compile and execute a
View Tutorial          By: RJ at 2010-04-20 01:30:10

4. I want to using swith with string...
How to

View Tutorial          By: anuj at 2015-03-04 18:22:29

5. Can any budy plz send me a source code of Sending
View Tutorial          By: vilas at 2010-03-23 20:38:08

6. how to calculate total value more item
View Tutorial          By: balaji at 2011-01-06 23:52:50

7. Thanks for giving iterator example
View Tutorial          By: Rajesh Kumar at 2010-11-03 05:17:05

8. Amazing tutorial!! This is what I was exactly look
View Tutorial          By: Sumanth Vaidya at 2015-06-17 18:19:16

9. This is good for beginners.
View Tutorial          By: sathish at 2011-04-05 11:37:30

10. This code rocks!! any one having any trouble shoul
View Tutorial          By: Ankur at 2010-01-22 06:37:10