When you run CommTest it should display devices connected to your serial ports No display means that you don't have ...
You mentioned something about "connection of PC with mobile" ... you mobile might not be attached as serial device even i you attached it to your PC. You might need additional drivers though The last error that you mention sounds like you are missing smslib jar file from the classpath. Check that ! But it will fail at initializing gateways since you have none as reported by CommTest Regards, MaxX On Thursday, August 16, 2012 10:25:12 PM UTC+3, bagri wrote: > > and when i try to run ReadMessages.java below exception is coming and i > think the problem is in connection of PC with mobile > > 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. > This software is distributed under the terms of the Apache v2.0 License. > Web Site: http://smslib.org > Version: 3.5.2 > Exception in thread "main" java.lang.NoClassDefFoundError: Could not > initialize class org.smslib.Service > at examples.modem.ReadMessages.doIt(ReadMessages.java:115) > at examples.modem.ReadMessages.main(ReadMessages.java:162) > > > > On Thursday, 16 August 2012 22:23:17 UTC+5:30, bagri wrote: >> >> hi all, >> >> i have install SMSLib using this site and successfully imported the java >> code .but when i run src/misc/CommTest.java it is not working properly >> it is showing this line >> Searching for devices... >> >> Test complete. >> >> which means it is not able to make communication with gsm mobile(acc to >> my understanding) >> please correct me or solve this problem..or tell me if i was wrong in >> installation of files >> >> PS: in some files i removed annotation (@Override) it was giving compile >> error >> >> -- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/smslib/-/qawWaGtePIIJ. For more options, visit https://groups.google.com/groups/opt_out.
