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. Can u show how to do text to speech with servlet.
View Tutorial          By: Rotika at 2011-01-23 20:54:40

2. Hi guys.i have a simple doubt.
i want to ru

View Tutorial          By: Muthukumar at 2011-12-29 07:30:56

3. Is System.gc() required with finalize method??
View Tutorial          By: QsRealm at 2012-02-11 08:28:16

4. Hello Friends ,

s1 == s2 will alway

View Tutorial          By: Gunjan at 2010-09-08 19:24:24

5. hi, would you please send me the detail to impleme
View Tutorial          By: nayeem at 2009-03-13 08:47:27

6. hey Mounika..did u solve ur problem ??if u did ple
View Tutorial          By: agnas at 2008-04-28 23:59:37

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

8. simply super post
View Tutorial          By: vinodh at 2010-05-05 00:29:12

9. how to create a do while,the output wil show the m
View Tutorial          By: waa at 2009-09-02 19:23:45

10. in this matter i get also this exception :

View Tutorial          By: oded at 2008-09-28 05:41:35