aspose file tools*
The moose likes Java in General and the fly likes Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.li Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.li" Watch "Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.li" New topic
Author

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

karnakar achuta
Greenhorn

Joined: Oct 17, 2013
Posts: 11
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16070
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
karnakar achuta
Greenhorn

Joined: Oct 17, 2013
Posts: 11
Thank you Tim Holloway.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14164
    
  19

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


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
karnakar achuta
Greenhorn

Joined: Oct 17, 2013
Posts: 11
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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14164
    
  19

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

Joined: Oct 17, 2013
Posts: 11
Hi.Jesper de Jong thank you for your reply.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.li