Setting up your development environment for JAVA with Maven — Linux Edition

Hennie Francis
3 min readMar 17, 2024

--

In this blog post, I will walk you through configuring your development machine for JAVA development using Apache Maven on Linux.

By the end of this guide, you will be able to start working on JAVA projects with Apache Maven on Linux.

If you are running Windows or macOS, please see the following posts regarding those Operating Systems:
Windows Edition
macOS Edition

Also see this article for the Hardware Requirements, and Prerequisites:
Setting up your development environment for JAVA with Maven

Software Installation

JetBrains IntelliJ

Download and extract the .tar.zg file and run

JAVA

Open the installer file and the file will start to extract the required files onto the machine

Open file extractor

Read the instructions and click on Next

Read the instructions and click on Next

Verify or Modify the installation path of JAVA and click Next

Verify or Modify the installation path of JAVA and click Next

Installation starting

Installation starting

Updating the components of the installer

Updating the components of the installer

Installer copying files over to machine

Installer copying files over to machine

Installation complete. Click on Close

Installation complete. Click on Close

Apache Maven

Ensure JAVA_HOME is set by running the following command in your terminal

echo %JAVA_HOME%

Download the binary zip archive from the publisher’s website
https://maven.apache.org/download.cgi

Switch to the Maven contents

mv Downloads/apache-maven* /opt/apache-maven

Add Maven binaries to the PATH and append

export PATH=/opt/apache-maven-3.9.6/bin:$PATH

Software Verification

JAVA

To verify the Java JDK is properly installed, from your command line run the following command:

java -version
Expected output of JAVA

This command verifies the Java (java) is installed. If java is not found, check your Java installation.

JAVA JDK

To verify the Java JDK is properly installed, from your command line run the following command:

javac -version
Expected output of JAVA JDK

This command verifies the Java complier (javac) is installed. If javac is not found, check your Java JDK installation.

Maven will not function without a properly installed.

Apache Maven

To verify the Apache Maven is properly installed, from your command line run the following command:

mvn -v
or
mvn -version
Expected Output of Apache Maven

This command verifies Apache Maven is installed. If Maven is not found, check your Maven User Variables

--

--

Hennie Francis

With more than 18 years’ experience in the industry. I believe if you have a passion for tech and a passion for what you do everyday, you will never ''work''