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. This the very good introduction to the J2ME for th
View Tutorial          By: chetan jain at 2010-04-01 06:39:32

2. better
View Tutorial          By: sanjeev at 2010-06-12 10:38:04

3. Ho,i have created read and write program on differ
View Tutorial          By: niranjan at 2015-08-26 09:02:57

4. Very nice article.... explained the concept very n
View Tutorial          By: prashant yeole at 2010-12-16 03:15:07

5. Hi,
Nice example....it's a good one to impl

View Tutorial          By: Anish at 2009-07-08 00:21:16

6. hi all,
I have run the code downloaded fro

View Tutorial          By: raghu at 2008-12-26 22:40:12

7. Thanks to the author, it was really a good tutoria
View Tutorial          By: Ashok Kumar at 2010-04-29 05:54:47

8. new Thread(this , "Demo thread") mean
View Tutorial          By: shalini at 2011-12-06 07:29:20

9. download jdk
View Tutorial          By: alireza esfandyarinezhad at 2011-03-07 11:52:55

10. The code for CharArrayReader is not working. So, w
View Tutorial          By: Maya Joshi at 2012-06-23 14:30:26