I did what you told me Whome but because I am using NetBeans I have put the library and the jar file in the directories and these r the thing that came:
init: deps-jar: compile: run: 23-Apr-2009 17:39:12 org.smslib.helper.Logger logInfo Example: Read messages from a serial gsm modem. INFO: 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 23-Apr-2009 17:39:12 org.smslib.helper.Logger logInfo INFO: Version: 3.4.0 23-Apr-2009 17:39:12 org.smslib.helper.Logger logInfo INFO: JRE Version: 1.6.0_13 23-Apr-2009 17:39:12 org.smslib.helper.Logger logInfo INFO: JRE Impl Version: 11.3-b02 23-Apr-2009 17:39:12 org.smslib.helper.Logger logInfo INFO: O/S: Windows XP / x86 / 5.1 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.4.0 23-Apr-2009 17:39:12 org.smslib.helper.Logger logInfo INFO: GTW: modem.com1: Starting gateway, using Generic AT Handler. 23-Apr-2009 17:39:12 org.smslib.helper.Logger logInfo INFO: GTW: modem.com1: Opening: COM1 @57600 Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 >>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: RESTART org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException >>> Gateway Status change for modem.com1, OLD: RESTART -> NEW: STOPPING at org.smslib.modem.SerialModemDriver.connectPort (SerialModemDriver.java:99) at org.smslib.modem.AModemDriver.connect(AModemDriver.java: 110) at org.smslib.modem.ModemGateway.startGateway (ModemGateway.java:158) at org.smslib.Service$1Starter.run(Service.java:238) 23-Apr-2009 17:39:13 org.smslib.helper.Logger logInfo INFO: GTW: modem.com1: Stopping gateway... java.lang.NullPointerException at org.smslib.scheduler.Scheduler.remove(Scheduler.java:84) at org.smslib.AGateway.stopGateway(AGateway.java:360) at org.smslib.modem.ModemGateway.stopGateway(ModemGateway.java: 168) at org.smslib.Service.stopService(Service.java:314) at examples.modem.ReadMessages.doIt(ReadMessages.java:124) at examples.modem.ReadMessages.main(ReadMessages.java:169) Here I have to say as well that this is given even if the phone is not connected and I don't know if I have to make some changes in the code of the READ example. And can you tell me atleast if something is acctually working.Idon't know wheter to use the RXTX or com v2 since they both give ruffly the same errors. I don't understand the errors may be it is looking for a different port I don't know how exactly is the code of the smslib working. Anyway I have to add that when I run that it reaches this stage but the running is still waiting for somehting. it does not stop after this errors that is what I mean. On Apr 23, 5:24 pm, whome <[email protected]> wrote: > Try RXTX comlibrary, I have used it in several WinXP boxes and found > it works better than Sun comlib. Some might disagree but I never > recommend or go back to Sun comlib.http://rxtx.qbang.org/ > > You need two files from rxtx site, I have downloaded v2.2 beta and > works fine. Make sure .dll is in -Djava.library.path and jar if found > in a regular java classpath. > RXTXcomm.jar > rxtxSerial.dll > > Here is a reference for folder structure you could use, app is an > imaginary one. > c:/test/lib/myapp.jar > c:/test/lib/smslib.jar > c:/test/lib/RXTXcomm.jar > c:/test/lib/rxtxSerial.dll > > c:\test\> java.exe -Djava.library.path=./lib -classpath ./lib/ > RXTXcomm.jar;./lib/smslib.jar;./lib/myapp.jar mytestapp > > On Apr 23, 4:37 pm, iliali16 <[email protected]> wrote: > > > > > well nothing changed may be I have to do something else or with > > another phone could it be that > > > On Apr 22, 8:39 pm, Thanasis <[email protected]> wrote: > > > > Hi, > > > > If you are seeing the same message whether you have your phone > > > connected or not, its surely a javacomm issue. > > > > You said before: > > > << > > > even added the jdkDIR/jre/lib/ext to my libraries > > > so it can see the comm.jar and all other RXTXcomm files > > > > If you run on Win32, use JavaComm v2. If you are on Linux, use RxTx. > > > DO NOT USE BOTH!!! Remove the one completely! > > > > Tell me a bit more about your setup: Operating system, phone model, > > > connectivity method (serial, usb?)? > > > > On Apr 22, 9:33 pm, iliali16 <[email protected]> wrote: > > > > > It is the same error just the line numbers are different. But if I > > > > have to compare the two classes they are the same lines just different > > > > line numbers. I want to ask as if I connect the phone and I don't > > > > connect it the errors are the same. if there is no phone what shtell I > > > > expect or I first have to compile it and then I will be able to see > > > > the phone's msges > > > > > On Apr 22, 4:30 pm, Thanasis <[email protected]> wrote: > > > > > > Can you download and try with this > > > > > example:http://smslib.googlecode.com/svn/smslib/tags/v3.3.3/src/java/examples... > > > > > > On Apr 22, 4:43 pm, iliali16 <[email protected]> wrote: > > > > > > > well now I did everything as it was instructed in the docs and then > > > > > > I > > > > > > went to netbeans and even added the jdkDIR/jre/lib/ext to my > > > > > > libraries > > > > > > so it can see the comm.jar and all other RXTXcomm files. do I need > > > > > > to > > > > > > do something more specific for netbeans > > > > > > > On Apr 22, 3:35 pm, iliali16 <[email protected]> wrote: > > > > > > > > Do u think it might not make connection to my phone or maybe it > > > > > > > does > > > > > > > not support my phone? > > > > > > > > On Apr 22, 10:55 am, Thanasis <[email protected]> wrote: > > > > > > > > > Hi, > > > > > > > > > This is a very vague error. It can be anything, most probably > > > > > > > > it must > > > > > > > > be an incorrect javacomm installation. > > > > > > > > Try to enable the debug in order to see what's really wrong. > > > > > > > > > On Apr 22, 4:44 am, iliali16 <[email protected]> wrote: > > > > > > > > > > Hy guys I have managed to plug the smslib in netbeans 6.5 but > > > > > > > > > I have > > > > > > > > > this problem when I run the ReadMessages.java I receive the > > > > > > > > > following > > > > > > > > > errors: > > > > > > > > > > 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.4.0 > > > > > > > > > java.lang.NullPointerException > > > > > > > > > at > > > > > > > > > examples.modem.ReadMessages.doIt(ReadMessages.java:158) > > > > > > > > > at > > > > > > > > > examples.modem.ReadMessages.main(ReadMessages.java:203) > > > > > > > > > BUILD SUCCESSFUL (total time: 1 second) > > > > > > > > > > Any help will be apreciated if you can explain what is > > > > > > > > > exactly leading > > > > > > > > > to this errors thansk in advance!- Hide quoted text - > > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib User 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 -~----------~----~----~----~------~----~------~--~---
