Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.
Comment Added by : Dse90
Comment Added at : 2010-02-10 04:28:34
Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Plz can someone help me, I copied the code above and pasted it, at least I did the pasting correctly. But when I try to compile, it gives me these error messages... Can someone help me out? my email address is [email protected] thanks
.\Sender.java:8: package javax.comm does not exist
import javax.comm.*;
^
.\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.getPortName());
^
.\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:
^
53 errors
Tool completed with exit code 1
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. can anyone please provide me how to map the column
View Tutorial By: Gaurav Balyan at 2012-01-03 11:09:26
2. Hi Blackpanther, the mode is either 0 or 1. If you
View Tutorial By: Ramlak at 2008-04-01 02:24:14
3. Hello, I have executed the above code and it works
View Tutorial By: Sana at 2010-02-01 03:50:18
4. thankssss to prograem
View Tutorial By: maha at 2010-05-21 05:14:36
5. how to implement stack with using vector class
View Tutorial By: anamika at 2015-08-25 18:58:29
6. thank for this script
because i will work
View Tutorial By: r at 2009-06-27 05:07:31
7. provided examples are very useful.
View Tutorial By: Technical Guy at 2010-04-25 08:12:06
8. thanks for your explanation, but for desired outpu
View Tutorial By: bismillah at 2010-09-02 10:16:09
9. Could any one please send the working source code
View Tutorial By: Raviteja at 2014-06-24 05:27:43
10. I have this line of code but i don't understand
View Tutorial By: Xris at 2011-11-08 06:01:01