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

*/

[1211 byte] By [YOGESH727] at [2007-9-26 3:05:45]
# 1
Hi,I think you have not set the CLASSPATH variable correctly.Just set the class path to the \lib directory of the installation of your javax.comm components.Hopefully this should solve the problem.
lakshmikant29 at 2007-6-29 11:07:53 > top of Java-index,Core,Core APIs...