Hi Thanasis, you are right. Its working. Thanks to you.
Yep, As i was using JDK 1.6 the COMM installation was different and i was been using settings of JDK 1.2. So comm was not installed properly. Thank you all. On Nov 21, 12:12 pm, Thanasis <[EMAIL PROTECTED]> wrote: > Hi, > > It looks like the javacomm library has not been installed correctly. > Make sure that all three (3) required javacomm files are in place (apart > from the comm.jar which seems to be in your classpath). > > Is COM7 correct? It must be a USB port, right? > Have you tried the commtest or tried to connect with Hyperterminal to this > port? > 2008/11/21 Rahul Boss <[EMAIL PROTECTED]> > > > > > > > I run the class ReadMessage which i have been picked up from Example > > folder. > > > I am getting an exception. > > > Class Run on command prompt: > > ---------------------------------------------- > > set path=C:\Program Files\Java\jdk1.6.0_04\bin > > > set pathc=C:\Users\rahul\Desktop\jk\ > > set mypropath=C:\Users\rahul\Desktop\mob\ > > > set classpath=%pathc%comm.jar;%pathc%commons-net-1.4.1.jar;%pathc > > %junit-3.8.1.jar;%pathc%log4j-1.2.14.jar;%pathc%mail.jar;%mypropath > > %actualmobile.jar; > > > java -Dsmslib.debug examples.modem.ReadMessages > > > pause > > > --------------------------------------------- > > > Output: > > ------------------------------------------------------------------- > > ------------------------------------------------------------------- > > C:\Users\rahul\Desktop>set path=C:\Program Files\Java\jdk1.6.0_04\bin > > > C:\Users\rahul\Desktop>set pathc=C:\Users\rahul\Desktop\jk\ > > > C:\Users\rahul\Desktop>set mypropath=C:\Users\rahul\Desktop\mob\ > > > C:\Users\rahul\Desktop>set classpath=C:\Users\rahul\Desktop\jk > > \comm.jar;C:\Users\rahul\Desktop\jk\commons-net-1.4.1.jar;C:\User > > s\rahul\Desktop\jk\junit-3.8.1.jar;C:\Users\rahul\Desktop\jk > > \log4j-1.2.14.jar;C:\Users\rahul\Desktop\jk\mail.jar;C:\Users\rahul > > \Desktop\mob\actualmobile.jar; > > > C:\Users\rahul\Desktop>java -Dsmslib.debug examples.modem.ReadMessages > > Example: Read messages from a serial gsm modem. > > SMSLib: A Java API library for sending and receiving SMS via a GSM > > modem > > or other supported gateways. > > Web Site:http://smslib.org > > This software is distributed under the terms of the Apache v2.0 > > License. > > Version: 3.3.0 > > 0 [main] INFO org.smslib - SMSLib: A Java API library for sending and > > receiving SMS via a GSM modem > > or other supported gateways. > > Web Site:http://smslib.org > > This software is distributed under the terms of the Apache v2.0 > > License. > > 0 [main] INFO org.smslib - Version: 3.3.0 > > 0 [main] INFO org.smslib - JRE Version: 1.6.0_04 > > 0 [main] INFO org.smslib - JRE Impl Version: 10.0-b19 > > 0 [main] INFO org.smslib - O/S: Windows Vista / x86 / 6.0 > > 31 [Thread-0] DEBUG org.smslib - WatchDog started. > > 31 [Thread-0] INFO org.smslib - WatchDog running... > > 31 [Thread-1] INFO org.smslib - GTW: modem.com7: Starting gateway, > > using Generic AT Handler. > > 47 [Thread-1] INFO org.smslib - GTW: modem.com7: Opening: COM7 @9600 > > >>> Gateway Status change for modem.com7, OLD: STOPPED -> NEW: RESTART > > org.smslib.GatewayException: Comm library exception: > > java.lang.reflect.InvocationTargetException > > at org.smslib.modem.SerialModemDriver.connectPort > > (SerialModemDriver.java:93) > > at org.smslib.modem.AModemDriver.connect(AModemDriver.java: > > 105) > > at org.smslib.modem.ModemGateway.startGateway > > (ModemGateway.java:108) > > at org.smslib.Service$1Starter.run(Service.java:226) > > 1045 [Thread-0] DEBUG org.smslib - WatchDog stopped. > > 1061 [main] INFO org.smslib - GTW: modem.com7: Stopping gateway... > > >>> Gateway Status change for modem.com7, OLD: RESTART -> NEW: STOPPED > > 1061 [main] INFO org.smslib - GTW: modem.com7: Closing: COM7 @9600 > > 1061 [main] INFO org.smslib - GTW: modem.com7: Gateway stopped. > > ---------------------------------------------------------------- > > ----------------------------------------------------------------- Hide > > quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib Users Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
