In this article, we will have explained the necessary steps to install and configure Eclipse on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Eclipse is a free integrated development environment IDE which is used by programmers around to write software mostly in Java but also supports multiple languages like C, C++, Java, PHP, Ruby, etc. for development. Eclipse comes with a variety of features and you can also extend it using plugins.
Install Eclipse IDE on Debian
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo apt update sudo apt upgrade
Step 2. Install Java on Debian.
OpenJDK is available in the official package repository of Debian 10, run following command to install Java:
sudo add-apt-repository ppa:linuxuprising/java sudo apt update sudo apt install oracle-java10-installer
Verify the Java version on your machine:
java -version
Step 3. Install Eclipse IDE in Debian.
Now download Eclipse IDE by using wget or curl command to download run below command:
wget 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
After completing downloading process, extract the eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz using following command inside usr directory:
sudo tar -zxvf eclipse-java-2019-03-R-linux-gtk-x86_64.tar.gz -C /usr/
Now create a symbolic link to /usr/bin directory using following command:
sudo ln -s /usr/eclipse/eclipse /usr/bin/eclipse
Step 4. Create Eclipse Launcher Icon.
Next, create Eclipse desktop launcher icon into system applications directory:
sudo nano /usr/share/applications/eclipse.desktop
Now paste following code:
[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
Step 5. Start Eclipse.
Now, you should be able to find Eclipse IDE in the Application Menu of Debian 10. Click on it to start Eclipse IDE. Otherwise you can run the following command to start Eclipse on Debian:
eclipse
Congratulation, you have learned how to install and configure Eclipse on Debian 10 Buster. If you have any question, please leave a comment below.