That error is because you have a 64 bit RXTX version running with 32 bit java version.
I had this problem and switch all to 32 bit java and .so libraries. I suggest you get a rxtx 32 bit. BTW I am using javacomm with no problems in Fedora Linux. HTH On Dec 18, 11:17 pm, Daya Shanker <[email protected]> wrote: > yes, I am using java comm V3, but I tried with Rxtx, In this case > application is not detecting port. it is giving error as given below : > java.lang.UnsatisfiedLinkError: /usr/lib/librxtxSerial.so: > /usr/lib/librxtxSerial.so: wrong ELF class: ELFCLASS64 thrown while loading > gnu.io.RXTXCommDriver > Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: > /usr/lib/librxtxSerial.so: /usr/lib/librxtxSerial.so: wrong ELF class: > ELFCLASS64 > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) > at java.lang.Runtime.loadLibrary0(Runtime.java:823) > at java.lang.System.loadLibrary(System.java:1030) > at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:169) > at > org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java:72) > at > org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:68) > at org.smslib.modem.AModemDriver.connect(AModemDriver.java:111) > at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:185) > at org.smslib.Service$1Starter.run(Service.java:257) > > Please help me, what to do next ? > > Thanks for reply.. > > Regds > Daya S Chaubey > > > > On Thu, Dec 17, 2009 at 10:26 PM, Thanasis <[email protected]> wrote: > > I assume you are currently using JavaComm v3, right? > > Try with RxTx - sometimes, it works better. > > > On Dec 17, 12:58 pm, j2ee <[email protected]> wrote: > > > Hello, > > > > I am using SendMessage.java program to send SMS. I have connected > > > Multitec GSM Modem to the USB port, and installed driver. I created a > > > simbolik link of /dev/ttyUSB0 to /dev/ttyS4. then I tried to execute > > > SendMessage.java, Following error is coming. Please help me out.. > > > > 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.4 > > > java.io.IOException: Not all params are supported by kernel > > > at com.sun.comm.LinuxSerial.nativeSetSerialPortParams(Native > > > Method) > > > at com.sun.comm.LinuxSerial.setFlowControlMode > > > (LinuxSerial.java:374) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke > > > (NativeMethodAccessorImpl.java:39) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > (DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > at org.smslib.helper.SerialPort.setFlowControlMode > > > (SerialPort.java:580) > > > at org.smslib.modem.SerialModemDriver.connectPort > > > (SerialModemDriver.java:82) > > > at org.smslib.modem.AModemDriver.connect(AModemDriver.java: > > > 111) > > > at org.smslib.modem.ModemGateway.startGateway > > > (ModemGateway.java:185) > > > at org.smslib.Service$1Starter.run(Service.java:257) > > > > Please reply me about the problem.. > > > > Thanks in Advance.. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "SMSLib for Java User Group" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<smslib%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/smslib?hl=en. > > -- > Thanks & Regds. > ***************************** > Daya Shanker Chaubey > Research Engineer > IN Group > C-DOT Delhi -- You received this message because you are subscribed to the Google Groups "SMSLib for Java 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.
