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



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. dummy piece
View Tutorial          By: Dummy at 2011-07-29 09:40:11

2. thanks nice article , but there is bug as already
View Tutorial          By: YZ at 2011-08-05 13:10:49

3. this tutorial is very nice but if it contains more
View Tutorial          By: JOHN.J at 2007-11-29 23:56:06

4. Thanks for providing detailed information .
View Tutorial          By: CM Mankar at 2008-03-18 04:37:03

5. @3
argc simply means the argument count.
View Tutorial          By: CDub at 2010-02-22 09:32:54

6. Thanks :)
View Tutorial          By: Soorej at 2010-11-23 23:43:27

7. so how can i run this project
View Tutorial          By: milinda at 2010-12-17 10:01:23

8. I have a mac book dual booting with snow leopard (
View Tutorial          By: david at 2015-06-27 15:33:07

9. so if you then wanted to send this gzencoded data
View Tutorial          By: Mike at 2009-03-18 12:12:28

10. hi this is from iniyan....
can you send t

View Tutorial          By: iniyan at 2007-09-09 06:50:18