How To Install libjava3d-jni on Ubuntu 18.04

In this tutorial we learn how to install libjava3d-jni on Ubuntu 18.04. libjava3d-jni is Java3D API (java jni library)

Introduction

In this tutorial we learn how to install libjava3d-jni on Ubuntu 18.04.

What is libjava3d-jni

libjava3d-jni is:

The Java 3D API enables the creation of three-dimensional graphics applications and Internet-based 3D applets. It provides high-level constructs for creating and manipulation 3D geometry and building the structures used in rendering that geometry. With this software, you can efficiently define and render very large virtual worlds.

This package contains the java jni library.

There are three methods to install libjava3d-jni 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 libjava3d-jni Using apt-get

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

sudo apt-get update

After updating apt database, We can install libjava3d-jni using apt-get by running the following command:

sudo apt-get -y install libjava3d-jni

Install libjava3d-jni Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libjava3d-jni using apt by running the following command:

sudo apt -y install libjava3d-jni

Install libjava3d-jni 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 libjava3d-jni using aptitude by running the following command:

sudo aptitude -y install libjava3d-jni

How To Uninstall libjava3d-jni on Ubuntu 18.04

To uninstall only the libjava3d-jni package we can use the following command:

sudo apt-get remove libjava3d-jni

Uninstall libjava3d-jni And Its Dependencies

To uninstall libjava3d-jni and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libjava3d-jni

Remove libjava3d-jni Configurations and Data

To remove libjava3d-jni configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjava3d-jni

Remove libjava3d-jni configuration, data, and all of its dependencies

We can use the following command to remove libjava3d-jni configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libjava3d-jni

References

Summary

In this tutorial we learn how to install libjava3d-jni package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.