在eclipse中使用maven进行compile时,出现了“No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK”错误,从表面意思我们大概能看出,其实就是使用了JRE而不是JDK。

修改一下Eclipse配置就好了,如下图:

画红线的地方其实是我修改后,其实在你的这个窗口下,应该是JRE,我们应该把这个JRE给删除掉,然后添加你电脑上的JDK即可。

即,点击ADD->Standard VM->JRE home后面的Directory->选择你的JDK的目录

然后

转载于:https://www.cnblogs.com/hark0623/p/4221629.html

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK相关推荐

  1. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a jdk

    Mven build编译报错 [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE ...

  2. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

    eclipse编译maven项目的时候,保存信息如下: [INFO] Changes detected - recompiling the module! [INFO] Compiling 198 s ...

  3. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. maven  run as  --install 时出错,提示信息如下: [ERROR] Faile ...

  4. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? ide

    mvn clean install -X -Dmaven.test.skip=true -P dev 打包报错: No compiler is provided in this environment ...

  5. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK .

    javaweb项目导出时遇到错误 错误内容: No compiler is provided in this environment. Perhaps youare running on a JRE ...

  6. 命令行mvn打包的时候报错:No compiler is provided in this environment. Perhaps you are running on a JRE

    一.前言 这部分是安装Elasticsearch-ik中文分词的时候,用mvn打包报错: No compiler is provided in this environment. Perhaps yo ...

  7. Jenkins报错No compiler is provided in this environment. Perhaps you are running on a JRE rather than a

    1.问题描述 全新部署的最新版jenkins,在服务器已经配置好JAVA_HOME,并且在jenkins的配置中也进行了配置,但是jenkins在执行maven构建的时候一直报错 No compile ...

  8. apollo编译报错,Error No compiler is provided in this enviroment.Perhaps you are running on a JRE rather

    Error No compiler is provided in this enviroment.Perhaps you are running on a JRE rather than a JDK ...

  9. 关于Maven项目build时出现No compiler is provided in this environment的处理

    近日有同事遇到在编译Maven项目时出现 [ERROR] No compiler is provided in this environment. Perhaps you are running on ...

最新文章

  1. 【612页】Android 大厂面试题及解析大全(中高级)
  2. 【Android 逆向】启动 DEX 字节码中的 Activity 组件 ( 在 PathClassLoader 和 BootClassLoader 之间插入 DexClassLoader )
  3. ZOJ3772_Calculate the Function
  4. 处理数字_10_计算某列重复最多的值
  5. 【javascript】数字相加
  6. Dev Express Report 学习总结(五)在分组中使用聚集表达式AggregateExpression
  7. 如何在Ubuntu中更改用户密码
  8. 中国互联网变天,小米上市后将彻底冲破 BAT 格局
  9. 手把手搭建K3cloud插件开发环境
  10. dell h330 不要做raid5 ,做raid0就可以了
  11. CardView的基本使用
  12. 混沌工程(Chaos Engineering) 到底是什么?
  13. 计算机取小数点后的小数 公式,(excel表格公式计算后取小数点后的位数)excle自己打几位小数...
  14. MATLAB中的sym函数、syms函数、symfun函数以及symvar函数的简单介绍
  15. 第四天(打造离线下载服务器)
  16. 2021年少儿编程未来趋势分析
  17. SQL注入漏洞测试(参数加密)
  18. IT出路:跳出TCO,着眼TVO(总体拥有价值)
  19. Integer 用法
  20. tar 解压出指定文件

热门文章

  1. 容器:我的java笔记(2)
  2. Unix Shell 数学计算命令
  3. 购买腾讯云主机后的快速配置
  4. pg_config executable not found
  5. 'staticfiles' is not a registered tag library. Must be one of:
  6. 安装apex报错解决
  7. awk或者sed识别和替换数据中最后一列的缺失值(转载)
  8. intellij运行spark的maven方式运行WordCount
  9. python:else与循环语句联合用法
  10. 【机器学习】贝叶斯整理