How To Install jna.x86_64 on Amazon Linux 2

In this tutorial we learn how to install jna.x86_64 in Amazon Linux 2. jna.x86_64 is Pure Java access to native libraries

Introduction

In this tutorial we learn how to install jna.x86_64 on Amazon Linux 2.

What is jna.x86_64

JNA provides Java programs easy access to native shared libraries (DLLs on Windows) without writing anything but Java code. JNA’s design aims to provide native access in a natural way with a minimum of effort. No boilerplate or generated code is required. While some attention is paid to performance, correctness and ease of use take priority.

We can use yum to install jna.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install jna.x86_64.

Install jna.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install jna.x86_64 using yum by running the following command:

sudo yum -y install jna.x86_64

How To Uninstall jna.x86_64 on Amazon Linux 2

To uninstall only the jna.x86_64 package we can use the following command:

sudo yum remove jna.x86_64

jna.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/jna
/usr/lib64/jna/libjnidispatch.so
/usr/share/doc/jna-3.5.2
/usr/share/doc/jna-3.5.2/CHANGES.md
/usr/share/doc/jna-3.5.2/LICENSE
/usr/share/doc/jna-3.5.2/LICENSE-2.0
/usr/share/doc/jna-3.5.2/OTHERS
/usr/share/doc/jna-3.5.2/README.md
/usr/share/doc/jna-3.5.2/TODO
/usr/share/java/jna.jar
/usr/share/maven-fragments/jna
/usr/share/maven-poms/JPP-jna.pom

References

Summary

In this tutorial we learn how to install jna.x86_64 on Amazon Linux 2 using yum.