How can I install the Spring Tool Suite in Ubuntu?

How do I install STS on Ubuntu? I already downloaded the compressed STS tar.gz file from spring.io.


Solution 1:

Step 1: Download the latest Spring Tool Suite for Linux from STS official website: http://spring.io/tools/sts/all

Step 2: Extract into any folder which you prefer. My extracted Spring Tool Suite locations is /home/harishshan/springsource

Step 3: Create the Menu icon for quick access

sudo vim /usr/share/applications/STS.desktop

Step 4: Enter the following content

[Desktop Entry]
Name=SpringSource Tool Suite
Comment=SpringSource Tool Suite
Exec=~/springsource/sts-3.4.0-RELEASE/STS
Icon=~/springsource/sts-3.4.0-RELEASE/icon.xpm
StartupNotify=true
Terminal=false
Type=Application
Categories=Development;IDE;Java;

Step 5: Now you can check from Quick Menu by typing "Spring"

Note: Small additional update for Ubuntu 18.04 & STS 4+ use Absolute path instead of relative. Use Exec=/home/harishshan/springsource/sts-3.4.0-RELEASE/STS Icon=/home/harishshan/springsource/sts-3.4.0-RELEASE/icon.xpm dont'use Exec=~somedir/harishshan/springsource/sts-3.4.0-RELEASE/STS Icon=~somedir/springsource/sts-3.4.0-RELEASE/icon.xpm

Source : http://harishshan.blogspot.fr/2014/05/install-spring-tool-suite-on-ubuntu.html

Solution 2:

Extract tar.gz file wherever you want

(for 64 Bit)

sudo tar -xvf spring-tool-suite-3.7.0.RELEASE-e4.5-linux-gtk-x86_64.tar.gz

(or for 32 Bit)

sudo tar -xvf spring-tool-suite-3.7.0.RELEASE-e4.5-linux-gtk.tar.gz

and you can start to use (/sts-bundle/sts-3.7.0.RELEASE/STS).