How To Install janino on CentOS 7

In this tutorial we learn how to install janino on CentOS 7. janino is An embedded Java compiler

Introduction

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

What is janino

Janino is a super-small, super-fast Java compiler. Not only can it compile a set of source files to a set of class files like the JAVAC tool, but also can it compile a Java expression, block, class body or source file in memory, load the byte-code and execute it directly in the same JVM. Janino is not intended to be a development tool, but an embedded compiler for run-time compilation purposes, e.g. expression evaluators or “server pages” engines like JSP.

We can use yum or dnf to install janino on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install janino.

Install janino on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install janino

Install janino 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 janino using dnf by running the following command:

sudo dnf -y install janino

How To Uninstall janino on CentOS 7

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

sudo dnf remove janino

References

Summary

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