鱼C论坛

 找回密码
 立即注册
查看: 2354|回复: 5

请大家帮忙看看下面的问题

[复制链接]
发表于 2020-3-10 14:08:33 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
我用命令行进行compile moven文件,可是一直报下面这个错,我也百度过,可是我的eclipse是用的jdk版本呀,而且也是1.8.请问这到底是哪里出现了问题呀
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.023 s
[INFO] Finished at: 2020-03-10T13:51:26+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project maven01-model: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR]
[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/confluen ... ojoFailureException



想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-3-10 19:50:45 | 显示全部楼层
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
你的环境下面没有安装JDK,或者安装了JDK之后没把java添加到环境变量里
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-10 21:49:06 | 显示全部楼层
lff 发表于 2020-3-10 19:50
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
你 ...

请问是哪个环境下没有安装jdk呀,eclipse的jdk的环境变量配置了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-3-11 09:58:52 | 显示全部楼层
我要拯救世界 发表于 2020-3-10 21:49
请问是哪个环境下没有安装jdk呀,eclipse的jdk的环境变量配置了

我就是不知道他这个环境是指的哪个?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-3-11 10:46:23 | 显示全部楼层
我要拯救世界 发表于 2020-3-10 21:49
请问是哪个环境下没有安装jdk呀,eclipse的jdk的环境变量配置了

系统环境变量
JAVA_HOME配置了没有
PATH环境里加了 %JAVA_HOME%\bin 没有
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-3-17 19:46:18 | 显示全部楼层
classpath  java home  都要配好~
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-28 16:01

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表