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 Gerry on Replacing the Xamarin Header/Navigation bar with a custom view/template
11 Jul 2019, 17:12 PM
By steve choi on Xamarin Forms multiple instances of same app open
30 Jun 2019, 09:09 AM
By esrgr on JQuery Unobtrusive Validation for dynamically created elements
11 Jun 2019, 06:01 AM
By annualmars on Raspberry Pi - Running Java app on Raspbian
10 May 2019, 15:48 PM
By Shahriar H. Razi on Xamarin Forms - Working with threads
7 May 2019, 09:25 AM
By Person on MVC forms in Umbraco
30 Apr 2019, 13:33 PM
By christopher on How to add a Xamarin Forms Loading Screen/Overlay
27 Mar 2019, 11:59 AM
By Rezi on Xamarin forms - Stop/Cancel back button event
22 Mar 2019, 13:08 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development