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



Comment Added by : Sanjay

Comment Added at : 2010-06-29 04:48:16

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
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,


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. nice one
View Tutorial          By: sarvesh at 2015-03-12 05:16:10

2. how to display images in j2me?? thank you :)
View Tutorial          By: bill at 2011-06-23 23:59:41

3. can any one plz send me the message passing codin
View Tutorial          By: sowmya at 2010-08-02 04:57:22

4. Nice stuff u guyzz are sharing
View Tutorial          By: kunal sharma at 2013-11-19 03:45:08

5. hiiiii
View Tutorial          By: hiiiiii at 2010-07-28 14:08:50

6. samples
View Tutorial          By: kamlesh at 2010-11-18 03:33:09

7. Great help
View Tutorial          By: Rajeshvar at 2009-11-04 08:43:09

8. thanks , but i want it some thing like fibonici se
View Tutorial          By: Arpit Agrawal at 2015-01-04 18:34:41

9. its very helpful and understandable.thanq
View Tutorial          By: Deepika darapaneni at 2012-03-24 14:16:39

10. I want to store the Data in Vector or the LinkedLi
View Tutorial          By: Sobia at 2013-01-17 11:24:59