How To Install hawtjni on CentOS 7

In this tutorial we learn how to install hawtjni on CentOS 7. hawtjni is Code generator that produces the JNI code

Introduction

In this tutorial we learn how to install hawtjni on CentOS 7.

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

Install hawtjni on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install hawtjni

Install hawtjni on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install hawtjni

How To Uninstall hawtjni on CentOS 7

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

sudo dnf remove hawtjni

References

Summary

In this tutorial we learn how to install hawtjni on CentOS 7 using yum and dnf.