2 Ways to Install Eclipse IDE on Debian 11 Bullseye

Learn the steps to install Eclipse IDE for C++, Java, PHP on Debian 11 Bullseye Linux using its official installer or downloading it via SNAP.

Eclipse is an open-source IDE solution for creating your programs and supports a large number of programming languages. It is a free framework based on Java. For this reason, the Java SDK must also be installed on your PC if you want to use the tool. Eclipse IDE is primarily designed as a Java development environment, however later, the range of supported languages ​​has expanded considerably thanks to the open-source structure and many plug-ins.

Some of the main features are syntax highlighting, code support, code formatting, refactoring, code templates, code navigation, PHP debugging, syntax validation, and an Eclipse ecosystem with a huge community to support. Eclipse PHP Development Tools is suitable for beginners because there is no license fee to be paid. The wide range of plugins available for Eclipse makes it a valuable tool for Java, web development, UML modeling, and more.

Here we will go through two simple ways for setting up Eclipse on Debian 11, the readers can follow the one as per their convenience.

Steps to install Eclipse IDE on Debian 11 Bullseye for developing

#Ist method- using Tar file

Update repository Cache

Before going further to install anything run the system update command that will not only install available security updates but also refresh the repository cache.

sudo apt update

 

Install JAVA

The current release of Java required by Eclipse is version 11 or greater. And the default version of OpenJDK available to install on Bullseye is also 11. Hence, nothing to do, simply run the given command to set up the default version of Java on your Debian 11 Bullseye.

sudo apt install default-jdk

To check the version, run:

java --version

Install default java debian 11

 

Download Eclipse IDE package on Debian 11

Now, on your terminal use the given command to get the latest version of Eclipse IDE.

wget https://mirror.umd.edu/eclipse/oomph/products/latest/eclipse-inst-jre-linux64.tar.gz

——-optional—–

Alternatively, The users can use the browser as well. Open it and visit the official download page of Eclipse foundation. There click on the Linux to get the Tar file containing the script that we can use to install and configure this open source IDE on Debian 11 Linux.

download Eclipse IDE for Debian 11 Bullseye


——-optional—–

 

Extract and start Eclipse Installer

Now, in the same directory where you have downloaded the Tar file of this IDE, run the given command to extract it.

tar -xvf eclipse-inst-jre-linux64.tar.gz

Note: Those who have used a browser to download the file, first need to switch to the Downloads directory.

Once the extraction is done start the Installer.

cd eclipse-installer/

Start script:

./eclipse-inst

 

Select the language to install Eclipse IDE

Now, as we know Eclipse supports multiple programming languages, hence you will get multiple options such as Eclipse for Jave, C++, PHP, and more. Here we are going for JAVA, you can choose the one you want or any other anytime by again starting the Installer script.

Eclipse Installer command on Debian 11 Bullseye

Leave the JAVA path default, if you have multiple versions of JDK then can change it to the preferred one.  Finally, hit the Install button.

Eclipse Installer Linux

Once the installation is done click on the LAUNCH button to start the Eclipse. This will also create a Desktop and Application launcher shortcut to start IDE in the future, immediately.

 

Uninstall or remove Eclipse completely (optional)

When we run the Eclipse installer it creates a folder in our home directory for it. Removing the same will completely remove this IDE from our system as well.

cd ~/

rm -r eclipse

 

#2nt method using SNAP packages:

Get Eclipse using SNAP on Debian 11

Those who don’t want to go through all the steps given above can choose the SNAP method. It is one of the easiest available to install Linux software, however, the latest version of Eclipse wouldn’t be there.

Install Snap

If you already don’t have a SNAP on your Debian 11 system, then first we need to install the same using the Apt package manager.

sudo apt install snapd

Start and enable:

sudo systemctl enable --now snap

Setup Eclipse 

sudo snap install eclipse --classic

Run:

sudo snap run eclipse

In case the icon of the application installed using SNAP is not showing in the system app launcher then run the below-given commands:

sudo ln -s /etc/profile.d/apps-bin-path.sh /etc/X11/Xsession.d/99snap
sudo nano /etc/login.defs

Paste the following at the end of the file:

ENV_PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

Save the file  Ctrl+O, hit Enter key, and then CTRL+X to exit the file.

To remove:

sudo snap remove eclipse

 

 

1 thought on “2 Ways to Install Eclipse IDE on Debian 11 Bullseye”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.