How To Install hawtjni on Fedora 36

In this tutorial we learn how to install hawtjni in Fedora 36. hawtjni is Code generator that produces the JNI code

Introduction

In this tutorial we learn how to install hawtjni on Fedora 36.

What is hawtjni

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 or dnf to install hawtjni on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install hawtjni.

Install hawtjni on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install hawtjni using dnf by running the following command:

sudo dnf -y install hawtjni

Install hawtjni on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install hawtjni using yum by running the following command:

sudo yum -y install hawtjni

How To Uninstall hawtjni on Fedora 36

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

sudo dnf remove hawtjni

hawtjni Package Contents on Fedora 36

/usr/share/java/hawtjni
/usr/share/java/hawtjni/hawtjni-generator.jar
/usr/share/maven-metadata/hawtjni.xml
/usr/share/maven-poms/hawtjni
/usr/share/maven-poms/hawtjni/hawtjni-generator.pom
/usr/share/maven-poms/hawtjni/hawtjni-project.pom

References

Summary

In this tutorial we learn how to install hawtjni on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).