Classic error reproduction-& gt; Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to, jdkjre

Source: Internet
Author: User

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...


Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.