• 错误如下
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project teavm-metaprogramming-api: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

  这是因为运行的是JRE,而不是JDK

  • 解决办法
vi .bashrcexport JAVA_HOME=${HOME}/tsjdk8
export PATH=${JAVA_HOME}/bin:${PATH}
  • 查看
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /home/uos/apache-maven-3.6.3
Java version: 1.8.0-taishan, vendor: AdoptOpenJdk, runtime: /home/tsit/tsjdk8-uos-64/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "4.19.0-6-amd64", arch: "amd64", family: "unix"

现在是在JDK的JRE上,就对了。

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

  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. 命令行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 ...

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

    在eclipse中使用maven进行compile时,出现了"No compiler is provided in this environment. Perhaps you are run ...

  4. 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 ...

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

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

  6. 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 ...

  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. 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 ...

  9. 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 ...

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

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

最新文章

  1. CentOS7安装配置VSFTP
  2. 包装类接受string 会自动将数字类型string转换成对应得包装类型
  3. mysql选定数据库_mysql数据库学习――2,数据库的选定,创建,删除和变更_MySQL...
  4. 网络营销立足于网站自身的优化与运营
  5. NPM依赖包版本号~和^的区别
  6. 一个实用的表格(锁定表头,可调整单元格大小,可排序)
  7. hive 百分比_HIVE短期内再次突破前高
  8. js,jquery字符串转换json,兼容各种浏览器
  9. Java字符串indexOf(int ch,int fromIndex)方法,带示例
  10. Elasticsearch 搜索数组字段
  11. 设计类网站|超实用的工具型网站!
  12. L3-001 凑零钱 (30 分)—团体程序设计天梯赛
  13. 互联网知识:工作多年的程序员都说不全
  14. java 设置session超时_Java设置session超时(失效)的时间
  15. 目录-管壳式换热器的分析与计算
  16. viper4android蓝牙耳机,蝰蛇音效app下载-蝰蛇音效官方版(ViPER4Android FX)下载v2.7.1.0 安卓版-单机手游网...
  17. 拼音加加在双拼状态下在输入数字后的标点不正常的解决方式
  18. OSError: dlopen
  19. 10099 - The Tourist Guide
  20. 压缩包伪装-阿里网盘禁止分享解决方案\更新日志

热门文章

  1. 洛谷2678跳石头----二分答案入门
  2. asp.net 自带 ajax,ASP.NET AJAX
  3. python判断是否有重复单词_Python:在字符串列表中查找未知的重复单词
  4. android发送短信界面,android调用系统发送短信 和 已发送短信界面
  5. oracle系统物料事务处理类型,Oracle_EBS_斌力十足系列_INV库存模块操作手册_杂项事务处理的分类和实际业务的应用场景专题研究报告...
  6. if or函数套用_excel常用函数用法解析第二篇——SUMPRODUCT、AND、OR、IF函数
  7. js call与apply函数
  8. Vue学习计划基础笔记(六) - 组件基础
  9. (转)android拨打电话崩溃6.0以上实时动态权限申请
  10. 复制:为什么你说“就差一个码农了”,我们是拒绝的