To maximize resources and minimize troubleshooting, perform a clean install or refresh of your operating system. Update your system, Enable VT-x in BIOS if possible, and uninstall all unnecessary programs.
-
Install Chocolatey
- Open
Powershell
as an administrator. - Run:
Set-ExecutionPolicy AllSigned
- Agree to all changes
- Run:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- Open
-
Open a new
Powershell
window as an administrator and run the following commands: -
To install Git for Windows:
choco install git
-
To install Oracle JDK 8:
choco install jdk8
Alternatively, use
choco install
and an OpenJDK distribution of your choosing:choco install adoptopenjdk8 choco install zulu8 choco install corretto8jdk
-
To install Apache Maven:
choco install maven
If using an OpenJDK distribution of Java, you should install Maven with the following command to avoid accidentally installing OracleJDK:
choco install maven --ignore-dependencies
-
To install Spring Tool Suite:
choco install springtoolsuite
Alternatively, install Eclipse for Enterprise Java Developers:
choco install eclipse
To confirm all tools are properly installed and configured, be sure the following commands return no errors:
git -v
java -version
javac -version
mvn -v
java
and javac
should only reference Java 8.
You should pin the shortcut to STS. All above tools can be installed at once for convenience using the following command:
choco install -y git jdk8 maven springtoolsuite