How To Install libcommons-launcher-java on Debian 10

Learn how to install libcommons-launcher-java on Debian 10 with this tutorial. libcommons-launcher-java is Apache Commons Launcher - Cross platform Java application launcher

Introduction

In this tutorial we learn how to install libcommons-launcher-java on Debian 10.

What is libcommons-launcher-java

libcommons-launcher-java is:

Commons-launcher eliminates the need for a batch or shell script to launch a Java class. Some situations where elimination of a batch or shell script may be desirable are:

  • You want to avoid having to determining where certain application paths are e.g. your application’s home directory, etc. Determining this dynamically in a Windows batch scripts is very tricky on some versions of Windows or when softlinks are used on Unix platforms.

  • You want to avoid having to handle native file and path separators or native path quoting issues.

  • You need to enforce certain system properties e.g. java.endorsed.dirs when running with JDK 1.4.

  • You want to allow users to pass in custom JVM arguments or system properties without having to parse and reorder arguments in your script. This can be tricky and/or messy in batch and shell scripts.

  • You want to bootstrap system properties from a configuration file instead hard-coding them in your batch and shell scripts.

  • You want to provide localized error messages which is very tricky to do in batch and shell scripts.

There are three methods to install libcommons-launcher-java on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcommons-launcher-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 libcommons-launcher-java using apt-get by running the following command:

sudo apt-get -y install libcommons-launcher-java

Install libcommons-launcher-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcommons-launcher-java using apt by running the following command:

sudo apt -y install libcommons-launcher-java

Install libcommons-launcher-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libcommons-launcher-java using aptitude by running the following command:

sudo aptitude -y install libcommons-launcher-java

How To Uninstall libcommons-launcher-java on Debian 10

To uninstall only the libcommons-launcher-java package we can use the following command:

sudo apt-get remove libcommons-launcher-java

Uninstall libcommons-launcher-java And Its Dependencies

To uninstall libcommons-launcher-java and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libcommons-launcher-java

Remove libcommons-launcher-java Configurations and Data

To remove libcommons-launcher-java configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libcommons-launcher-java

Remove libcommons-launcher-java configuration, data, and all of its dependencies

We can use the following command to remove libcommons-launcher-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcommons-launcher-java

Dependencies

libcommons-launcher-java have the following dependencies:

References

Summary

In this tutorial we learn how to install libcommons-launcher-java package on Debian 10 using different package management tools: apt, apt-get and aptitude.