COMPILATION ERROR : Unable to locate the Javac Compiler
在使用STS的maven build命令打包时出现了Unable to locate the Javac Compiler in:C:\Program Files\Java\jre1.8.0_201\..\lib\tools.jar的错误:
错误信息明确指示了jre的问题,需要的是jdk中的tools.jar,而不是jre路径下的tools.jar。
打开window-->preferences-->java-->Installed JREs ,将jre替换成jdk,重新运行打包命令即可。