How To Install ecj.x86_64 on Amazon Linux 2

In this tutorial we learn how to install ecj.x86_64 in Amazon Linux 2. ecj.x86_64 is Eclipse Compiler for Java

Introduction

In this tutorial we learn how to install ecj.x86_64 on Amazon Linux 2.

What is ecj.x86_64

ECJ is the Java bytecode compiler of the Eclipse Platform. It is also known as the JDT Core batch compiler.

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

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

sudo yum -y install ecj.x86_64

How To Uninstall ecj.x86_64 on Amazon Linux 2

To uninstall only the ecj.x86_64 package we can use the following command:

sudo yum remove ecj.x86_64

ecj.x86_64 Package Contents on Amazon Linux 2

/usr/bin/ecj
/usr/share/doc/ecj-4.5.2
/usr/share/doc/ecj-4.5.2/about.html
/usr/share/java/ecj.jar
/usr/share/java/eclipse-ecj.jar
/usr/share/java/jdtcore.jar
/usr/share/man/man1/ecj.1.gz
/usr/share/maven-fragments/ecj
/usr/share/maven-poms/JPP-ecj.pom

References

Summary

In this tutorial we learn how to install ecj.x86_64 on Amazon Linux 2 using yum.