在构建Maven项目时出现此问题..请帮帮我..
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project Subs_Engine: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7\..\lib\tools.jar -> [Help 1]
如果要在Eclipse中使用它,请确保Eclipse指向的是JDK,而不是JRE。
在Eclipse中,导航至Window-> Preferences-> Java-> Installed JRES-Add ... Standard VM,然后将Directory ...指向JDK。如果您尚未安装JDK,显然您需要安装它。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句