dialing a PHONE number through code
/*
Hello all,
I am trying to compile blow program but It has error(ERROR)
which I cannot figure out how to correct this.
I have followed instruction to install Communication API.
Please help me.
*/
/*program to dial a number through modem (implementation of serial port programming)
*/
import javax.comm.*;
public class ydial {
public void send(){
sendRing();
}
private void sendRing(){
try{
String dialingNo="5661519";
logger.verbose("Modem Dialing at "+dialingNo+"];",6);
writer.write(dialingNo,0,dialingNo.length());
writer.write(CHAR_CR);
writer.flush();
}catch(Exception ex){ex.printStackTrace();}
}
public static void main(String s[]){
ydial y=new ydial();
y.send();
}
}
/*
//ERROR:
C:\jdk1.2\bin\ydial.java:1: Package javax.comm not found in import.
import javax.comm.*;
^
1 error
Tool completed with exit code 1
*/
/*
I you know another way to do this work then plese tell me.
Thanks for all your help ahead of time,
Yogesh
*/

