How to Install Eclipse on Linux Mint 19

Eclipse is an open-source most used IDE (Integrated Development Environment) in the world. It is widely used and the most popular IDE in the world because of its availability. The eclipse marketplace let’s allow you to extend the development surfaces to any language and development environment. Even you can make your own custom plugin for your personal or business project. In this tutorial, we will learn how to install eclipse on your Linux Mint 19 machine.

install eclipse on linux mint 19 progracoding

If you are looking for installing Eclipse on other Linux distros, you may go for:

  • Install Eclipse on Ubuntu 18
  • Install Eclipse on CentOS 7 /RHEL
  • Install Eclipse on Debian 9
  • Install Eclipse on Fedora

Requirements

To install Eclipse IDE on your Linux Mint system you will need:

  • Properly installed Linux Mint desktop environment.
  • Sudo user privileges

Installing Dependencies

We will need two dependencies to successfully install and run eclipse on Linux Mint machine. The first one is the Java SDK. Although Eclipse is written in C programming language. It requires Java 8 or higher to run.

Secondly, we will need to install the curl package. Which will help us to download and install eclipse from the CLI.

*Install Java

To install java open your command line and type the following command to update your Linux system first:

$ sudo apt update

After updating, now type the following command and run to install java latest version on your system:

$ sudo apt install -y openjdk-11-jdk

After running this command, the downloading process should be started. After downloading your computer care about installation of Java automatically.

After installing, check the installation status by running the following commands:

$ java — version

If you get following output, that means Java is successfully installed:

openjdk 11.0.3 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode)

*Install curl

Install curl on your system, if it is not already installed. To install curl run the following command:

$ sudo apt install -y curl

Install Eclipse on Linux Mint 19

To download Eclipse from the official repository copy and run the following command:

$ curl http://ftp.jaist.ac.jp/pub/eclipse/technology/epp/downloads/release/2019-03/R/eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz -O

It will take a bit to download the archive file. We just have downloaded an archive file of Eclipse IDE. Now we have to extract it in order to install. To extract and install on /usr/ default directory run following command:

$ sudo tar -zxvf eclipse-java-2019-*-R-linux-gtk-x86_64.tar.gz -C /usr/

Now make an environment for creating desktop launcher by running the following command:

$ sudo ln -s /usr/eclipse/eclipse /usr/bin/eclipse

Now we will create Eclipse application launcher. To do that follow the steps below:

Type the following command to create a new desktop launcher file for the eclipse:

$ sudo gedit /usr/share/applications/eclipse.desktop

The gedit text editor will be opened. Now copy the following text into gedit,

[Desktop Entry] Encoding=UTF-8
Name=Eclipse IDE
Comment=Eclipse IDE
Exec=/usr/bin/eclipse
Icon=/usr/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Development;Programming
StartupNotify=false

Now save the file and close the text editor.

Now you should find Eclipse launcher icon from your application list or you can run Eclipse by typing just eclipse in your command line.

Now, its time to write some quality code, Cheers!

{Linux case studies}

Linux Tutorial Linux Tutorial Index
Tags