java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path

Here's how to fix the error 'java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path' when running a Java application on the Raspberry Pi.

Install librxtx using the following command:

sudo apt-get install librxtx-java

Copy the rxtx files from the following directory:

/usr/lib/jni

and put them into this directory:

/usr/lib

Now try and run your Java application and it should work fine. :D


Published at

Tags: Raspberry Pi,Java

Luke Alderton

Comments

Alaa
Thanks! this solved my problem
03/06/2018
Post a comment
Sit tight...
We're adding your comment.
Thank you.
Your comment has been added.
There's been a problem.
Please try again later.
Share with
Tags
Latest Comments
By Josh on Using Umbraco Route Hijacking and posting to it
14 Jan 2019, 15:17 PM
By Shane on Xamarin Forms multiple instances of same app open
14 Dec 2018, 05:33 AM
By Daler on Xamarin MasterDetailPage has large margin/padding at top
3 Dec 2018, 06:30 AM
By JM on Solved: You need to use a Theme.AppCompat theme (or descendant) with this activity
10 Oct 2018, 13:36 PM
By praveen on Xamarin Forms - Working with threads
5 Oct 2018, 12:05 PM
By Lee Messenger on Umbraco Get Current Member or Member By ID
4 Sep 2018, 10:57 AM
By Naufil on How to open a modal window for a custom datatype in the Umbraco back office
30 Jul 2018, 12:40 PM
By Trevor on Replacing the Xamarin Header/Navigation bar with a custom view/template
19 Jul 2018, 18:36 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development