How To Install Eclipse IDE on Linux Mint 19

0
This document is also available for

Eclipse is a well-known, widely used IDE (Integrated Development Environment) for developing Java applications and also developing applications in COBOL, Ada, C, C++, Perl, PHP, Python, R, Ruby, Clojure, Scala, Groovy, and Scheme.

Eclipse t is written in C and Java and released under Eclipse Public License. It includes development environments for Eclipse JDT for Java, Eclipse CDT for C/C++ and Eclipse PDT for PHP, among others.

With the plugins available in Eclipse Marketplace, we can extend the functionality of Eclipse.

Prerequisites

To be able to install Eclipse IDE, you must have sudo privileges.

Install Java

Update the system repository index.

sudo apt update

Install the curl package to download the Eclipse IDE from the internet using a terminal.

sudo apt install -y curl

Eclipse requires Java 8 or above need to be available on your machine. To do that, you can either install Oracle JDK or OpenJDK.

For this demo, I will use OpenJDK 11 here.

sudo apt install -y openjdk-11-jdk

Verify the Java version on your machine.

java -version

Output:

openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment (build 11.0.2+9-Ubuntu-3ubuntu118.04.3)
OpenJDK 64-Bit Server VM (build 11.0.2+9-Ubuntu-3ubuntu118.04.3, mixed mode, sharing)

Download Eclipse

Download the latest version of Eclipse IDE (v2019-03) from the Eclipse IDE’s official page using a web browser.

OR

Download the Eclipse package over a terminal using the below 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

Extract Eclipse package to your desired directory (Ex. /usr/).

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

Symlink the eclipse executable to /usr/bin path so that all users on your machine can able to run and use Eclipse IDE.

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

Create Eclipse Launcher Icon

Sometimes creating an Eclipse launcher icon in GNOME will let you quickly start the application from the start menu of Linux Mint.

sudo nano /usr/share/applications/eclipse.desktop

Use the following information in the above file.

[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

Start Eclipse IDE

Command Line

eclipse

GUI

Go to Menu >> Programming >> Eclipse IDE.

Install Eclipse IDE on Linux Mint 19 - Start Eclipse
Install Eclipse IDE on Linux Mint 19 – Start Eclipse

Select a directory as a workspace for Eclipse and click Launch.

Install Eclipse IDE on Linux Mint 19 - Create Workspace for Eclipse
Install Eclipse IDE on Linux Mint 19 – Create Workspace for Eclipse

Eclipse IDE v2019-03 running on Linux Mint 19:

Eclipse Running on Linux Mint 19
Eclipse Running on Linux Mint 19

Conclusion

In this article, you have seen how to install Eclipse IDE on Linux Mint 19. You can go to Eclipse Market Place to download plugins and products to extend the functionality of Eclipse IDE.

You might also like