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



Comment Added by : raghu

Comment Added at : 2008-12-26 22:40:12

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
hi all,
I have run the code downloaded from your site to send sms but it is not running fine these are the errors please take a look at them and please rectify them


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

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







Please help me in this regard,
Thanks ,
raghu


View Tutorial



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. Very Nice and Perfectly Understandable.....
View Tutorial          By: rex at 2015-04-16 12:27:03

2. I HAVE ONE DOUBT.

public class Anim

View Tutorial          By: georgy at 2009-10-22 02:46:10

3. Well the code is good but what if students start e
View Tutorial          By: nitin kumar sharma at 2015-07-15 06:58:18

4. i tried your code but i got an error on this line<
View Tutorial          By: edward at 2011-12-09 11:32:30

5. Very good for the example......
View Tutorial          By: Tuhin Subhra Mandal at 2012-10-14 12:22:01

6. I need more example........
View Tutorial          By: niyaz d at 2011-02-20 23:44:56

7. i am a bca student. i want to know more about garb
View Tutorial          By: ahana at 2011-06-26 11:02:36

8. Thanks alot that was quite helpful!
View Tutorial          By: Doaa at 2013-01-09 09:37:35

9. explaination is very good ,(lucid and succinct app
View Tutorial          By: shailendra singh at 2010-06-08 11:24:29

10. rms programe
View Tutorial          By: hardik at 2008-03-28 23:06:58