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 Raymondpef on MVC forms in Umbraco
20 Nov 2018, 23:58 PM
By svetikNoupt on MVC forms in Umbraco
20 Nov 2018, 19:44 PM
By Lestersep on MVC forms in Umbraco
17 Nov 2018, 13:55 PM
By nseo-sw.men on MVC forms in Umbraco
17 Nov 2018, 00:43 AM
By shale.larosh on MVC forms in Umbraco
16 Nov 2018, 22:34 PM
By EdwardPhova on MVC forms in Umbraco
16 Nov 2018, 12:40 PM
By svetikNoupt on MVC forms in Umbraco
13 Nov 2018, 22:04 PM
By nseo-sw.men on MVC forms in Umbraco
13 Nov 2018, 17:47 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development