我该如何在Ubuntu上安装STS?我已经从spring.io下载了压缩的STS tar.gz文件。
步骤 1:从 STS 官方网站https://spring.io/tools下载最新的 Linux 版 Spring Tool Suite。
步骤 2:将其解压缩到您喜欢的任何文件夹中。我的解压后的 Spring Tool Suite 位置是 /home/harishshan/springsource。
步骤 3:创建快捷访问菜单图标。
sudo vim /usr/share/applications/STS.desktop
步骤4:输入以下内容
[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;
步骤 5:现在您可以通过输入“Spring”在快捷菜单中检查。
注意:针对Ubuntu 18.04和STS 4+的小型附加更新,使用绝对路径而不是相对路径。请使用
Exec=/home/harishshan/springsource/sts-3.4.0-RELEASE/STS Icon=/home/harishshan/springsource/sts-3.4.0-RELEASE/icon.xpm
不要使用Exec=~somedir/harishshan/springsource/sts-3.4.0-RELEASE/STS Icon=~somedir/springsource/sts-3.4.0-RELEASE/icon.xpm
来源:http://harishshan.blogspot.fr/2014/05/install-spring-tool-suite-on-ubuntu.html
在任意位置提取tar.gz文件
(64位)
sudo tar -xvf spring-tool-suite-3.7.0.RELEASE-e4.5-linux-gtk-x86_64.tar.gz
(或32位系统)
sudo tar -xvf spring-tool-suite-3.7.0.RELEASE-e4.5-linux-gtk.tar.gz
而且你可以开始使用 (/sts-bundle/sts-3.7.0.RELEASE/STS)。
将STS安装程序包(*.tar.gz)文件下载到您的下载目录。在撰写本文时,该目录为...
spring-tool-suite-3.9.5.RELEASE-e4.8.0-linux-gtk-x86_64.tar.gz
展开压缩文件...
tar -xzf spring-tool-suite-3.9.5.RELEASE-e4.8.0-linux-gtk-x86_64.tar.gz
将STS文件移动到一个适合它们存放的位置。我喜欢把可能被多个用户共享的应用程序安装到/opt/...目录中。
sudo mv sts-bundle /opt/sts
因为@Sangimed的回答也很好,所以我要借鉴他剩下的内容。
创建菜单图标以快速访问...
sudo nano /usr/share/applications/STS.desktop
输入以下内容
[Desktop Entry]
Name=SpringSource Tool Suite
Comment=SpringSource Tool Suite
Exec=/opt/sts/sts-3.9.5.RELEASE/STS
Icon=/opt/sts/sts-3.9.5.RELEASE/icon.xpm
StartupNotify=true
Terminal=false
Type=Application
Keywords=Java,Eclipse,Spring,IDE,Development
Categories=Development;IDE;Java;
现在,您只需按下键盘上的"Windows"键并键入"spring"即可启动该应用程序,就像桌面上任何正确安装的应用程序一样。
wget “download.springsource.com/release/STS/3.9.0.RELEASE/dist/e4.7/spring-tool-suite-3.9.0.RELEASE-e4.7.0-linux-gtk-x86_64.tar.gz”
解压tar文件:
sudo tar -xvf spring-tool-suite-3.9.0.RELEASE-e4.7.0-linux-gtk-x86_64.tar.gz
前往http://spring.io/tools/sts/all的STS下载页面,选择Linux和您的架构(x86-x64)。下载完成后,进入已下载的目录并将.zip
文件解压缩到您选择的便捷目录中。打开已提取的sts-bundle
目录,右键单击STS
,然后点击运行即可。
1.从官网下载tarball文件
2.解压缩tarball文件并在Ubuntu上运行STS文件
http://commandstech.com/how-to-install-stsspring-tool-suite-on-ubuntu-16-04-with-pictures/
4. 接着在STS中创建一个示例项目。答案非常简单:
注意:最后一条语句将查找所有以“spring-…”命名的tar文件。在运行此命令之前,请确保下载文件夹中只有一个sts tar归档文件。
spring-tool-suite-3.8.4.RELEASE-e4.6.3-linux-gtk-x86_64.tar.gz
。 - Martin Thoma/home/harishshan/springsource/sts-4.7.0.RELEASE/SpringToolSuite4
。这个更改适用于STS 4+版本。 - Abhijay Kumar