How To Install javahelper on Ubuntu 20.04
Introduction
In this tutorial we learn how to install javahelper
on Ubuntu 20.04.
What is javahelper
javahelper is:
Javahelper contains several scripts which help in packaging Java programs.
jh_depends searches jars to find which packages they depend on, similar to dh_shlibdeps. It will also add depends on jarwrapper for packages with executable jars.
jh_classpath will register the classpath dependencies for each jar so that they can be automatically loaded when that jar is used by other programs.
jh_manifest updates the manifest in jar files according to a provided spec so that the resultant jar files will work with jarwrapper-enabled packages.
jh_exec looks for symlinks to jars which should be executable and makes them executable
jh_build builds java files to jars for you.
jh_installlibs installs library jars into the correct locations
jh_makepkg generates a template for a Debian Java package for you
jh_installeclipse installs features/plugins built by pde-build.
jh_setupenvironment prepares an out of source built for eclipse builds.
jh_generateorbitdir creates and populates an orbit dir for eclipse builds.
jh_compilefeatures compiles eclipse features based on feature ids.
/usr/share/javahelper/java-vars.mk provides a selection of useful variables such as various JVM paths and the JVM name for the architecture
/usr/share/javahelper/java-arch.sh converts Debian architecture names into java names to locate libjvm.so in non-make build systems
javahelper provides CDBS and dh macros so that it can be used with those package build systems.
Note that some of the eclipse helpers depends on packages not pulled by default (like with devscripts). You can find these scripts in Suggests.
There are three methods to install javahelper
on Ubuntu 20.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 javahelper Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install javahelper
using apt-get
by running the following command:
sudo apt-get -y install javahelper
Install javahelper Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install javahelper
using apt
by running the following command:
sudo apt -y install javahelper
Install javahelper 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 javahelper
using aptitude
by running the following command:
sudo aptitude -y install javahelper
How To Uninstall javahelper on Ubuntu 20.04
To uninstall only the javahelper
package we can use the following command:
sudo apt-get remove javahelper
Uninstall javahelper And Its Dependencies
To uninstall javahelper
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove javahelper
Remove javahelper Configurations and Data
To remove javahelper
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge javahelper
Remove javahelper configuration, data, and all of its dependencies
We can use the following command to remove javahelper
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge javahelper
References
Summary
In this tutorial we learn how to install javahelper
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.