Install Eclipse2021-03 on Ubuntu20.04 LTS

① Download Eclipse (2021-03)

cd /opt
sudo wget https://mirrors.neusoft.edu.cn/eclipse/oomph/epp/2021-03/R/eclipse-inst-jre-linux64.tar.gz

Unzip after the download is complete

sudo tar -zxvf eclipse-inst-jre-linux64.tar.gz -C /opt/

②Install Eclipse

/opt/eclipse-installer/eclipse-inst

After the following interface appears, select the first item

insert image description here

Then select the installation path, here choose to install to/opt/eclipse

insert image description here
Start Eclipse command:

cd /opt/eclipse/eclipse
sudo ./eclipse

③ Generate a shortcut

cd /usr/share/applications
sudo vim eclipse.desktop

Enter the following into the text document:

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse
Exec=/opt/eclipse/eclipse/eclipse
Icon=/opt/eclipse/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;

Then add permissions, and copy to the desktop to run

sudo chmod u+x eclipse.desktop
cp eclipse.desktop /home/你的用户名/Desktop

After running successfully, delete the useless installation files

sudo rm -rf /opt/eclipse-installer

Guess you like

Origin blog.csdn.net/m0_51755720/article/details/120923104#comments_25462532