Skip to content

Installation

Martin Lippert edited this page Jul 23, 2024 · 106 revisions

Visual Studio Code

Download and install Visual Studio Code:

Install from the Visual Studio Marketplace:

More detailed instructions on installing extension from Visual Studio Marketplace can be found here

Snapshots builds

We provide daily snapshot builds as pre-releases in Visual Studio Code. The extension page in Visual Studio Code allows you to switch your installation to those snapshot pre-release builds instead of the latest release (e.g. in case you would like to try latest fixes and improvements before they get published as part of a release).

Spring Tool Suite 4 (the Eclipse-based distribution)

Spring Tools 4 ready-to-use distribution package

Note: For Windows, the download is a self-extracting JAR archive. Double click and it will expand itself on disc.

Install Spring Tools 4 into an existing Eclipse (via the Marketplace)

You can install Spring Tools 4 into your existing Eclipse installation using the Eclipse Marketplace. Search for "Spring Tools 4" and install:

Install Spring Tools 4 into an existing Eclipse (via a p2 repo)

Go to Help -> Install New Software and paste this repository URL into the dialog:

Select the main features you wish to install and proceed. The standard set of features is this:

For the reference, the feature IDs are:

  • org.springframework.boot.ide.main.feature
  • org.springframework.tooling.boot.ls.feature
  • org.springframework.ide.eclipse.boot.dash.feature
  • org.springframework.ide.eclipse.xml.namespaces.feature

There are some additional features provided as part of the update site that you can install if you would like to use them:

  • org.springframework.tooling.cloudfoundry.manifest.ls.feature: providing editor support for CloudFoundry Manifest files
  • org.springframework.tooling.bosh.ls.feature: providing editor support for CloudFoundry BOSH config files
  • org.springframework.tooling.concourse.ls.feature: prodiving editor support for Concourse CI config files

In addition, there are specific p2 repositories for specific versions of Eclipse, in case you don't use the latest Eclipse release:

These p2 repository URLs always point at the latest Spring Tools release for the related Eclipse version.

Snapshot builds

We provide up-to-date snapshot builds of the Spring Tools 4 for Eclipse via:

https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html

There, you can find the latest snapshot builds as full distribution builds for the various Eclipse base versions as well as p2 update site URLs for those snapshot builds.

Here, you can also find early access builds of the Spring Tools 4 for Eclipse for the next upcoming Eclipse versions.

Theia

Download and install Theia for desktop:

Install from the Extensions view:

More detailed instructions on installing extension from Visual Studio Marketplace can be found here

Theia IDE can be deployed in a Cloud environment and served over the web. (See Instructions for Deployment in the Cloud) If Theia IDE is deployed and running somewhere then STS extensions can be installed into Theia with the Extension Manager. You can use the Extension Manager to install the STS 4 vscode extensions which you can get from our VSCode Extensions Downloads page. Note that in order for this to work your Theia instance must have both the:

  • the Extension Manager (package @theia/plugin-ext) and the
  • VSCode extension compatibility support (package @theia/plugin-ext-vscode) included.

Configuring the internal JDK

The Spring Tools contain an isolated component that runs in a separate process and provides most of the services that the Spring Tools add to their environment. This separate process is a so-called "language server", it uses the Language Server Protocol to communicate with the surrounding editors and IDEs.

This language server itself is written in Java and requires a JRE to run. In most cases, the JRE to run this separate process will be the same JRE that is used to either run the IDE (for the Eclipse case) or the JRE that is used to run the Java language server from the Java Language Tooling Extension (in the VSCode case).

In case the tooling can't identify those JREs, it looks in these places and uses the first java executable found to run this process:

  • the location configured via ${language-server-name}.ls.java.homesettings. Where ${language-server-name} is one of spring-boot, concourse, cloudfoundry-manifest or bosh. This setting is specific fora particular language server and only affects how that server launches.
  • the location in JAVA_HOME environment variable
  • a java executable in the PATH

It is possible to use the Spring Boot and Java tooling with projects that require older JRE to compile and run since the JRE used for this purpose is independent of the JRE used to launch the language server itself. The best way to configure the JRE for the language server independently is to set ${language-server-name}.ls.java.home in vscode's user or workspace settings - in case the tooling can't identify the correct JRE automatically.

Clone this wiki locally