To build the current version of MALLET and to install its required dependencies in Ubuntu 17.04, first open a terminal window and navigate to the directory in which you would like to build MALLET (I use ~/run), then run the following commands from terminal:

sudo apt-get update; sudo apt-get upgrade -y
sudo apt-get install ant git-core openjdk-8-jdk -y
git clone
mv Mallet mallet
cd mallet

For more information on MALLET, check out Shawn Graham and Ian Milligan’s thoughtful review of the package in the Journal of Digital Humanities.