How To Install bsf.noarch on Amazon Linux 2

In this tutorial we learn how to install bsf.noarch in Amazon Linux 2. bsf.noarch is Bean Scripting Framework

Introduction

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

What is bsf.noarch

Bean Scripting Framework (BSF) is a set of Java classes which provides scripting language support within Java applications, and access to Java objects and methods from scripting languages. BSF allows one to write JSPs in languages other than Java while providing access to the Java class library. In addition, BSF permits any Java application to be implemented in part (or dynamically extended) by a language that is embedded within it. This is achieved by providing an API that permits calling scripting language engines from within Java, as well as an object registry that exposes Java objects to these scripting language engines. BSF supports several scripting languages currently * Javascript (using Rhino ECMAScript, from the Mozilla project) * Python (using either Jython or JPython) * Tcl (using Jacl) * NetRexx (an extension of the IBM REXX scripting language in Java) * XSLT Stylesheets (as a component of Apache XML project’s Xalan and Xerces) In addition, the following languages are supported with their own BSF engines * Java (using BeanShell, from the BeanShell project) * JRuby * JudoScript

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

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

sudo yum -y install bsf.noarch

How To Uninstall bsf.noarch on Amazon Linux 2

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

sudo yum remove bsf.noarch

bsf.noarch Package Contents on Amazon Linux 2

/usr/share/doc/bsf-2.4.0
/usr/share/doc/bsf-2.4.0/AUTHORS.txt
/usr/share/doc/bsf-2.4.0/CHANGES.txt
/usr/share/doc/bsf-2.4.0/LICENSE.txt
/usr/share/doc/bsf-2.4.0/NOTICE.txt
/usr/share/doc/bsf-2.4.0/README.txt
/usr/share/doc/bsf-2.4.0/RELEASE-NOTE.txt
/usr/share/doc/bsf-2.4.0/TODO.txt
/usr/share/java/bsf.jar
/usr/share/maven-fragments/bsf
/usr/share/maven-poms/JPP-bsf.pom

References

Summary

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