The causes and solutions of the exception of the specified JRE installation does not exist

Today, looking back, in order to learn the new framework, I changed the JDK version from 1.7 development standard version to 1.8 development standard version. Everything went smoothly in the early stage, and I completed the test and experience of the new framework. However, when I ran the original project, the problem occurred, and the exception of the specified JRE installation does not exit was revealed, Through the literal meaning of this exception, we know that it means “the specified JRE is not installed”. But God knows that I have installed it. OK, I also opened the black window of CMD and knocked out the Java and Java – version commands. Everything tells me that I have installed it. If it is not installed, the new framework will not work

OK, now that the problem has appeared, let’s check it step by step. First of all, through the command in the black window, we know that we have actually installed it and it has taken effect in other places. Now that eclipse reports an error, it means that the problem is still in eclipse itself, so we start the check

First, confirm whether the JRE is configured correctly

  

We can see that I did configure it. Since eclipse configuration is OK, check Tomcat to see if there is any problem

  

Open the Tomcat configuration page and click the Edit button, we will see that although we have configured the new JDK, the original Tomcat still points to the original JDK, so it can’t find the original JDK. Because Xiaobian has solved the problem, we don’t want to repeat the problem, just tell you the solution. OK, now that we know the reason, it’s easy to do. We can delete this service or click Edit, and change the JDK to the current JDK in the original or new Tomcat configuration, as follows:

  

At this point, the problem is basically solved. There is a final step. Don’t forget to delete Tomcat under our original service

  

Then add a new Tomcat again and start the project. Is it very simple?In fact, most of the bugs are caused by our carelessness. As long as we are more careful, there will be no such Wulong. Finally, thank you for watching. If you think it’s good, please like it

Similar Posts: