There have been other reports of errors with Linux/JavaComm as well. I guess you should also try to use RxTx as an alternative. Be sure to delete all traces of JavaComm before installing RxTx! You may also need to use the "-Dsmslib.serial.polling" switch (see http://smslib.org/doc/kb/#Virtual_Serial_Ports_and_Linux for more).
On Jan 8, 9:18 am, Jai <[email protected]> wrote: > I am using JDK 1.5.0_16, > I also put javax.comm.properties into my jar, with out this, it is > exception: > javax.comm: Error loading javax.comm.properties! > null > > java.io.IOException: javax.comm: platform driver class name = null > (Check 'driver' property in > javax.comm.properties) > > at javax.comm.CommPortIdentifier.loadDriver > (CommPortIdentifier.java:244) > at javax.comm.CommPortIdentifier.<clinit> > (CommPortIdentifier.java:109) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:164) > at org.smslib.helper.CommPortIdentifier.<clinit> > (CommPortIdentifier.java:66) > at org.smslib.modem.SerialModemDriver.connectPort > (SerialModemDriver.java:67) > at org.smslib.modem.AModemDriver.connect(AModemDriver.java: > 110) > at org.smslib.modem.ModemGateway.startGateway > (ModemGateway.java:126) > at org.smslib.Service$1Starter.run(Service.java:222) > Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: > isSessionActive > at com.sun.comm.SunrayInfo.isSessionActive(Native Method) > at com.sun.comm.Portmapping.registerCommPorts(Portmapping.java: > 155) > at com.sun.comm.Portmapping.refreshPortDatabase > (Portmapping.java:100) > at javax.comm.CommPortIdentifier.<clinit> > (CommPortIdentifier.java:138) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:164) > at org.smslib.helper.CommPortIdentifier.<clinit> > (CommPortIdentifier.java:66) > at org.smslib.modem.SerialModemDriver.connectPort > (SerialModemDriver.java:67) > at org.smslib.modem.AModemDriver.connect(AModemDriver.java: > 110) > at org.smslib.modem.ModemGateway.startGateway > (ModemGateway.java:126) > at org.smslib.Service$1Starter.run(Service.java:222) > > but still, I have not run it success on linux. when I running : java > misc.CommTest > Searching for devices... > > Found port: /dev/ttyS0 > Trying at 9600... no device found (java.io.IOException: Not > all params are supported by kernel) > Trying at 14400... no device found > (javax.comm.UnsupportedCommOperationException: Baud rate not > supported) > Trying at 19200... no device found (java.io.IOException: Not > all params are supported by kernel) > Trying at 28800... no device found > (javax.comm.UnsupportedCommOperationException: Baud rate not > supported) > Trying at 33600... no device found > (javax.comm.UnsupportedCommOperationException: Baud rate not > supported) > Trying at 38400... no device found (java.io.IOException: Not > all params are supported by kernel) > Trying at 56000... no device found > (javax.comm.UnsupportedCommOperationException: Baud rate not > supported) > Trying at 57600... no device found (java.io.IOException: Not > all params are supported by kernel) > Trying at 115200... no device found (java.io.IOException: Not > all params are supported by kernel) > > Found port: /dev/ttyS1 > Trying at 9600... no device found (java.io.IOException: Not > all params are supported by kernel) > Trying at 14400... no device found > (javax.comm.UnsupportedCommOperationException: Baud rate not > supported) > Trying at 19200... no device found (java.io.IOException: Not > all params are supported by kernel) > Trying at 28800... no device found > (javax.comm.UnsupportedCommOperationException: Baud rate not > supported) > Trying at 33600... no device found > (javax.comm.UnsupportedCommOperationException: Baud rate not > supported) > Trying at 38400... no device found (java.io.IOException: Not > all params are supported by kernel) > Trying at 56000... no device found > (javax.comm.UnsupportedCommOperationException: Baud rate not > supported) > Trying at 57600... no device found (java.io.IOException: Not > all params are supported by kernel) > > any idea? > > On 1月8日, 下午3时04分, Thanasis <[email protected]> wrote: > > > Hi, > > > I guess the only change you did is this directory "JDKDIR/jre/lib/ > > i386/", right? > > What JDK are you using? > > > On Jan 8, 5:26 am, Jai <[email protected]> wrote: > > > > smslib's Installation Instructions for linux does not work for me. > > > > * File comm.jar should go under JDKDIR/jre/lib/ext/ - OK > > > * File javax.comm.properties should go under JDKDIR/jre/lib/ - > > > put this file into you classpath or pack it into your jar, or by > > > adding "-Djava.class.path=...dir where javax.comm.properties lives" to > > > your command line.(without quote). this works for me > > > * Library files (i.e. win32com.dll for Win32 or the .so Linux > > > library files) should go under JDKDIR/jre/bin/ - go under JDKDIR/ > > > jre/lib/i386/ , this works for me. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
