• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.li

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry yar this is the right place to ask this question or not i dnt know please anybody help me

GTW: modem.com1: Starting gateway, using Huawei E160 AT Handler.
14:05:13,975 INFO [stdout] (Thread-76) Connecting to port
14:05:13,975 INFO [smslib] (Thread-76) GTW: modem.com1: Opening: /dev/ttyS0 @9600
14:05:14,014 ERROR [stderr] (Thread-76) Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.path
14:05:14,019 ERROR [stderr] (Thread-76) Exception in thread "Thread-76" java.lang.UnsatisfiedLinkError: com.sun.comm.Unix.isDevLink(Ljava/lang/String;)Z
14:05:14,020 ERROR [stderr] (Thread-76) at com.sun.comm.Unix.isDevLink(Native Method)
14:05:14,020 ERROR [stderr] (Thread-76) at com.sun.comm.PathBundle.add(PathBundle.java:108)
14:05:14,020 ERROR [stderr] (Thread-76) at com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44)
14:05:14,020 ERROR [stderr] (Thread-76) at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
14:05:14,020 ERROR [stderr] (Thread-76) at java.lang.Class.forName0(Native Method)
14:05:14,021 ERROR [stderr] (Thread-76) at java.lang.Class.forName(Class.java:190)
14:05:14,021 ERROR [stderr] (Thread-76) at com.prapansol.solar.prapanSMS.org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java:66)
14:05:14,021 ERROR [stderr] (Thread-76) at com.prapansol.solar.prapanSMS.org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:69)
14:05:14,021 ERROR [stderr] (Thread-76) at com.prapansol.solar.prapanSMS.org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
14:05:14,021 ERROR [stderr] (Thread-76) at com.prapansol.solar.prapanSMS.org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
14:05:14,022 ERROR [stderr] (Thread-76) at com.prapansol.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is definitely not the right place to ask. This is the place to get help on JavaServer Faces web technology. What you are encountering relates to Java Native Interface (JNI). I'll try and find an appropriate forum to move this thread to.
 
karnakar achuta
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Tim Holloway.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error means that Java cannot find a native library "LinuxSerialParallel". You need to have that native library (the file should probably be named LinuxSerialParallel.so if this is on Linux), and you'd need to set java.library.path to the directory that contains this library:

java -Djava.library.path=/path/to/libdir com.mypackage.MyProgram
 
karnakar achuta
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. Jesper de Jong i am working on Linux 64bit,i was copied this file in to sftp://192.168.10.18/usr/lib now it is giving exception like bellow please help me.

GTW: modem.com1: Opening: /dev/ttyS0 @9600
18:32:40,055 ERROR [stderr] (Thread-72) Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: /usr/lib/libLinuxSerialParallel.so: /usr/lib/libLinuxSerialParallel.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
18:32:40,069 ERROR [stderr] (Thread-72) Exception in thread "Thread-72" java.lang.UnsatisfiedLinkError: com.sun.comm.Unix.isDevLink(Ljava/lang/String;)Z
18:32:40,071 ERROR [stderr] (Thread-72) at com.sun.comm.Unix.isDevLink(Native Method)
18:32:40,072 ERROR [stderr] (Thread-72) at com.sun.comm.PathBundle.add(PathBundle.java:108)
18:32:40,076 ERROR [stderr] (Thread-72) at com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44)
18:32:40,077 ERROR [stderr] (Thread-72) at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
18:32:40,078 ERROR [stderr] (Thread-72) at java.lang.Class.forName0(Native Method)
18:32:40,079 ERROR [stderr] (Thread-72) at java.lang.Class.forName(Class.java:190)
18:32:40,080 ERROR [stderr] (Thread-72) at com.prapansol.solar.prapanSMS.org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java:66)
18:32:40,083 ERROR [stderr] (Thread-72) at com.prapansol.solar.prapanSMS.org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:69)
18:32:40,084 ERROR [stderr] (Thread-72) at com.prapansol.solar.prapanSMS.org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
18:32:40,085 ERROR [stderr] (Thread-72) at com.prapansol.solar.prapanSMS.org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
18:32:40,086 ERROR [stderr] (Thread-72) at com.prapansol.solar.prapanSMS.org.smslib.Service$1Starter.run(Service.java:276)
 
Jesper de Jong
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The library you're trying to use is 32-bit, that will not work when you're using a 64-bit JVM.

Either find a 64-bit version of the library and use that, or use a 32-bit JVM.
 
karnakar achuta
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.Jesper de Jong thank you for your reply.
 
A wop bop a lu bop a womp bam boom! Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic