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



Comment Added by : Mudra

Comment Added at : 2010-06-04 15:04:55

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
What is the use of "SMSConnector" in this? Does it need to be changed ??
The below errors come while compliling...PLEASE help me out...I need to submit my project in 3 days...and anyhow i need to solve this error...PLEASE GUIDE me through this...

C:\sms\sms\src\smsPackage>javac SerialConnection.java
SerialConnection.java:22: cannot find symbol
symbol : class SerialParameters
location: class smsPackage.SerialConnection
private SerialParameters parameters;
^
SerialConnection.java:51: cannot find symbol
symbol : class SerialParameters
location: class smsPackage.SerialConnection
public SerialConnection(SerialParameters parameters) {
^
SerialConnection.java:65: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
public void openConnection() throws SerialConnectionException {
^
SerialConnection.java:155: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
public void setConnectionParameters() throws SerialConnectionException {
^
SerialConnection.java:92: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException(e.getMessage());
^
SerialConnection.java:101: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
} catch (SerialConnectionException e) {
^
SerialConnection.java:113: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException("Error opening i/o streams");
^
SerialConnection.java:128: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException("too many listeners added");
^
SerialConnection.java:176: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException("Unsupported parameter");
^
SerialConnection.java:181: setFlowControlMode(int) in javax.comm.SerialPort cann
ot be applied to (boolean)
sPort.setFlowControlMode( (parameters.getFlowControlIn())
^
SerialConnection.java:184: cannot find symbol
symbol : class SerialConnectionException
location: class smsPackage.SerialConnection
throw new SerialConnectionException("Unsupported flow control");
^
11 errors


i guess there is some error related to SerialPort...how to check it?
I have connected E71 as a GSM Modem..it supports internet so...And when i try to QueryModem in properties of Modem-Port in Control Panel...they say that the port is used by some application...but i have not opened any IE or any other window using the same port...

Reply soon...


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. short and very clear
View Tutorial          By: ramesh at 2009-07-22 22:27:25

2. Nevermind, I was able to modify both applications
View Tutorial          By: Matthew at 2009-06-16 14:10:20

3. Good examples for beginners.
View Tutorial          By: Sagar at 2009-10-16 01:04:46

4. http://www.java-samples.com/showtutorial.php?tutor
View Tutorial          By: Prab at 2009-04-13 11:54:17

5. i am trying to run the above example in eclipse bu
View Tutorial          By: Prathyusha at 2015-03-10 11:01:06

6. Can anybody tell.... what if condition is doing in
View Tutorial          By: Randhir Sambyal at 2013-08-26 06:37:25

7. This is a great article that deals with the evolut
View Tutorial          By: JPS SASTRY at 2009-02-11 21:29:56

8. I am still going through the tutorial, but it seem
View Tutorial          By: shadowwraith at 2011-06-08 08:00:57

9. nativeFinalize: Error closing Handle 6
and

View Tutorial          By: yash at 2008-05-16 17:43:42

10. Very useful and simple.
Thanks.

View Tutorial          By: harsh at 2014-11-06 10:01:22