How To Install libeclipse-jdt-compiler-tool-java on Ubuntu 18.04

In this tutorial we learn how to install libeclipse-jdt-compiler-tool-java on Ubuntu 18.04. libeclipse-jdt-compiler-tool-java is Eclipse Java Compiler Tool Support

Introduction

In this tutorial we learn how to install libeclipse-jdt-compiler-tool-java on Ubuntu 18.04.

What is libeclipse-jdt-compiler-tool-java

libeclipse-jdt-compiler-tool-java is:

Eclipse JDT Core is the Java infrastructure of the Eclipse Java IDE. It includes:

  • An incremental Java compiler. Implemented as an Eclipse builder, it is based on technology evolved from VisualAge for Java compiler. In particular, it allows one to run and debug code which still contains unresolved errors.
  • A Java Model that provides API for navigating the Java element tree. The Java element tree defines a Java centric view of a project. It surfaces elements like package fragments, compilation units, binary classes, types, methods, fields.
  • A Java Document Model providing API for manipulating a structured Java source document.
  • Code assist and code select support.
  • An indexed based search infrastructure that is used for searching, code assist, type hierarchy computation, and refactoring. The Java search engine can accurately find precise matches either in sources or binaries.
  • Evaluation support either in a scrapbook page or a debugger context.
  • Source code formatter

This package contains the org.eclipse.jdt.compiler.tool bundle.

There are three methods to install libeclipse-jdt-compiler-tool-java on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libeclipse-jdt-compiler-tool-java Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libeclipse-jdt-compiler-tool-java using apt-get by running the following command:

sudo apt-get -y install libeclipse-jdt-compiler-tool-java

Install libeclipse-jdt-compiler-tool-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libeclipse-jdt-compiler-tool-java using apt by running the following command:

sudo apt -y install libeclipse-jdt-compiler-tool-java

Install libeclipse-jdt-compiler-tool-java Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libeclipse-jdt-compiler-tool-java using aptitude by running the following command:

sudo aptitude -y install libeclipse-jdt-compiler-tool-java

How To Uninstall libeclipse-jdt-compiler-tool-java on Ubuntu 18.04

To uninstall only the libeclipse-jdt-compiler-tool-java package we can use the following command:

sudo apt-get remove libeclipse-jdt-compiler-tool-java

Uninstall libeclipse-jdt-compiler-tool-java And Its Dependencies

To uninstall libeclipse-jdt-compiler-tool-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libeclipse-jdt-compiler-tool-java

Remove libeclipse-jdt-compiler-tool-java Configurations and Data

To remove libeclipse-jdt-compiler-tool-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libeclipse-jdt-compiler-tool-java

Remove libeclipse-jdt-compiler-tool-java configuration, data, and all of its dependencies

We can use the following command to remove libeclipse-jdt-compiler-tool-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libeclipse-jdt-compiler-tool-java

References

Summary

In this tutorial we learn how to install libeclipse-jdt-compiler-tool-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.