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


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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.