Classic error reproduction-> Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to, jdkjre
The error code is as follows:
Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS, No Java Virtual machine was found after searching the following locations: running in your current PATH
Solution: According to the error, we found that Spring Tool Suite could not find the currently available JRE (Java Runtime Environment, Java Runtime Environment) in the system ), the reason cannot be found is that the system does not configure environment variables for the installed JDK or JRE in the current system. Another situation is the configuration, however, the STS cannot properly locate the JRE and start it properly due to an incorrect or non-standard method.
- Step 1: Find the Java installation directory. For example, my installation directory is C: \ ProSoft \ Java \ jdk1.7.0 _ 72.
- Step 2: Computer --> properties ---> advanced system settings ---> Environment Variables
1). Create a new user variable as follows:
2) edit the Path variable in the system variable, for example:
3) check whether the installation is successful. For example, CMD java-version:
4). The Java environment configuration is complete. Check whether the Spring Tool Suite is normal! Do it yourself...