老师,打包出现的这些错误是什么意思呢?
来源:2-3 Hello Spring Security

tidhy
2017-12-04
百度没有找到,只好麻烦您了
[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Unable to locate the Javac Compiler in: C:\Program Files\Java\jre1.8.0_74\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] imooc-security ..................................... SUCCESS [ 0.377 s] [INFO] imooc-security-core ................................ SUCCESS [ 4.769 s] [INFO] imooc-security-app ................................. SUCCESS [ 0.399 s] [INFO] imooc-security-browser ............................. SUCCESS [ 0.255 s] [INFO] imooc-security-demo ................................ FAILURE [ 0.349 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.407 s [INFO] Finished at: 2017-12-04T22:04:54+08:00 [INFO] Final Memory: 29M/183M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project imooc-security-demo: Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR] C:\Program Files\Java\jre1.8.0_74\..\lib\tools.jar [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE (the com.sun.tools.javac.Main class is required). [ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the JAVA_HOME environment variable. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :imooc-security-demo
写回答
2回答
-
慕斯卡3405105
2018-05-25
我的也无法打包!请问解决没有
00 -
旧梦空城不等待
2017-12-05
你这个是java环境配置的不对把?
下面的错误提示是没有在你指定的位置发现你的1.8版本的jdk,请确保使用1.4及以上版本的jdk052018-01-25
Spring Security技术栈开发企业级认证与授权
Spring Security技术栈,REST风格开发常见接口,独立开发认证授权模块保证REST服务安全
2662 学习 · 1561 问题
相似问题