How To Install hawtjni.noarch on Amazon Linux 2

In this tutorial we learn how to install hawtjni.noarch in Amazon Linux 2. hawtjni.noarch is Code generator that produces the JNI code

Introduction

In this tutorial we learn how to install hawtjni.noarch on Amazon Linux 2.

What is hawtjni.noarch

HawtJNI is a code generator that produces the JNI code needed to implement java native methods. It is based on the jnigen code generator that is part of the SWT Tools project which is used to generate all the JNI code which powers the eclipse platform.

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

Install hawtjni.noarch 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 hawtjni.noarch using yum by running the following command:

sudo yum -y install hawtjni.noarch

How To Uninstall hawtjni.noarch on Amazon Linux 2

To uninstall only the hawtjni.noarch package we can use the following command:

sudo yum remove hawtjni.noarch

hawtjni.noarch Package Contents on Amazon Linux 2

/usr/share/doc/hawtjni-1.6
/usr/share/doc/hawtjni-1.6/changelog.md
/usr/share/doc/hawtjni-1.6/license.txt
/usr/share/doc/hawtjni-1.6/readme.md
/usr/share/java/hawtjni-generator.jar
/usr/share/java/hawtjni-runtime.jar
/usr/share/maven-effective-poms/JPP-hawtjni-generator.pom
/usr/share/maven-effective-poms/JPP-hawtjni-runtime.pom
/usr/share/maven-fragments/hawtjni.xml
/usr/share/maven-poms/JPP-hawtjni-generator.pom
/usr/share/maven-poms/JPP-hawtjni-project.pom
/usr/share/maven-poms/JPP-hawtjni-runtime.pom

References

Summary

In this tutorial we learn how to install hawtjni.noarch on Amazon Linux 2 using yum.