STS中No compiler is provided in this environment. Perhaps you are running on a JRE rather a jdk?解决方案

STS中,No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题的解决方案

大致意思是在这个环境中没有编译环境,即不存在javac.exe,  

分析原因:在安装的jdk中JRE目录中,不存在javac.exe,而在JDK目录中存在javac.exe命令,这就有可能是STS中配置存在错误!

解决方法:
windows--->preferences---->java----->Installed JREs



注意:出现问题可能就是 JRE home  选择的Indirectory为jre目录:C:\Program Files\Java\jre1.8.0_92
                                                                           应该选择  C:\Program Files\Java\jdk1.8.0_92

猜你喜欢

转载自blog.csdn.net/u013148287/article/details/51982830