Official sources lack of instructions on how to properly install Eclipse IDE software on Linux Debian distro. Bellow is a simple step-by-step view on what worked for me.
To be able to run Eclipse IDE you need to have OpenJDK installed.
sudo apt install openjdk-11-jdk -y
Download the Eclipse IDE package over a terminal using wget. In case you run into some issues, another way is to download it direclty from Ecplise site.
sudo apt install -y wget wget http://mirror.umd.edu/eclipse/technology/epp/downloads/release/2020-06/R/eclipse-java-2020-06-R-linux-gtk-x86_64.tar.gz
Now you can extract the Eclipse package to /usr
directory.
sudo tar -zxvf eclipse-java-2020-06-R-linux-gtk-x86_64.tar.gz -C /usr/
Create a symbolic link of Eclipse ececutable to /usr/bin path
so other users are able to use Eclipse as well. In Unix-like operating systems, symlink() system call is created with ln -s command.
sudo ln -s /usr/eclipse/eclipse /usr/bin/eclipse
Create Eclipse launcher icon to run Eclipse from Gnome
sudo nano /usr/share/applications/eclipse.desktop
Paste 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
Type=Application
Terminal=0
Afterwars, you can just run eclipse
command from command line or go to Activities > search for Eclipse and you should be good to go!
Let me know if this was somehow useful or reach out to me here.
Comment
thanks