How To Install Eclipse IDE on Debian 9 & Debian 8
Eclipse is a well-known, versatile, Integrated Development Environment, widely used for developing JAVA application all around the world. Eclipse is written in Java and released under Eclipse Public License, an open-source license.
Eclipse is not only used for developing Java applications, but it can also be used to develop applications in various programming languages including COBOL, Ada, C, C++, Perl, PHP, Python, R, Ruby (including Ruby on Rails framework), Clojure, Scala, Groovy, and Scheme.
With the support of plugins available in Eclipse Marketplace, we can extend the functionality of Eclipse.
To be able to install Eclipse, you need to be logged in as a user with sudo privileges.
Eclipse requires Java to be available on your machine. So, go and install the Java JDK. You can either install Oracle Java JDK or OpenJDK.
For this demo, we use OpenJDK 8 here.
sudo apt-get update sudo apt-get install -y openjdk-8-jdk curl wget
Verify the Java version on your machine.
openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1~deb9u1-b01) OpenJDK 64-Bit Server VM (build 25.212-b01, mixed mode)
Download the latest version of Eclipse IDE (2019-03) from the official page using a web browser.
Download the Eclipse package over a terminal using the following command (risk of being changed).
Extract Eclipse package to your desired directory (Ex.
sudo tar -zxvf eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz -C /usr/
Symlink eclipse executable to /usr/bin path so that users on the machine can able to use Eclipse.
sudo ln -s /usr/eclipse/eclipse /usr/bin/eclipse
Create Eclipse Launcher Icon
Sometimes you may want to have Eclipse icon on Gnome or Dash, just like in the Start menu of Windows.
sudo nano /usr/share/applications/eclipse.desktop
Use the following content in the above file.
[Desktop Entry] Encoding=UTF-8 Name=Eclipse IDE Comment=Eclipse IDE Exec=/usr/bin/eclipse Icon=/usr/eclipse/icon.xpm Categories=Application;Development;Java;IDE Version=4.8 Type=Application Terminal=0
Go to Activities >> Search for Eclipse.
Select a directory as workspace for Eclipse and then click Launch.
Eclipse IDE running on Debian 9: