场景

将SpringBoot打包时提示:

Perhaps you are running on a JRE rather than a JDK?

解决

Eclipse默认在jre上运行,maven install 编译需要jdk中的编译器,而jre中并没有

找到Windows-preferences-java-Installed JREs-Add-Standard VM--next

选择jdk的安装目录,点击Finish,此为默认安装目录。

添加完后,勾选为刚才添加的jdk

然后再选择Installed IREs下的Execution Environments,重新设置为jdk,然后关闭。

SpringBoot打包时提示:Perhaps you are running on a JRE rather than a JDK?相关推荐

  1. springboot打包时提示There are test failures.解决方法

    问题: There are test failures. Please refer to D:\Projects\java_basic\app-jna-sdk\target\surefire-repo ...

  2. springboot项目打包时提示“程序包xxx不存在,找不到符号

    springboot项目打包时提示"程序包xxx不存在,找不到符号" springboot多包工程,在使用maven进行打包的时候,一直提示"程序包xxx不存在,找不到符 ...

  3. IDEA中启动SpringBoot项目时提示:“Error java:程序包xxx不存在”,但实际上是存在的

    场景 在IDEA中启动SpringBoot项目时提示: Error java: 程序包xxx不存在" 但是实际上这个包是存在的. 这个包是自己写的websocket的服务端和客户端的包,是存 ...

  4. IDEA中进行SpringBoot开发时提示:Error resolving template xxx, template might not exist or might not be acce

    场景 IDEA中进行SpringBoot开发时提示: Error resolving template "xxx", template might not exist or mig ...

  5. UNITY 打包时提示sdk tools 或 sdk build tools版本低时可以直接点update 按钮进行更新...

    UNITY 打包时提示sdk tools 或 sdk build tools版本低时可以直接点update 按钮进行更新 如题.如果不更新,而选择 : use newest version insta ...

  6. SpringBoot启动时 提示没有主清单属性 MANIFEST

    SpringBoot启动时 提示没有主清单属性 MANIFEST <?xml version="1.0" encoding="UTF-8"?>< ...

  7. webpack打包时提示:The following entrypoint(s) combined asset size exceeds the recommended limit

    如果webpack打包时提示:The following entrypoint(s) combined asset size exceeds the recommended limit,可以设置 &q ...

  8. npm run build打包时提示RangeError:Maximum call stack size exceeded

    项目打包时提示如下: UnhandlePromiseRejectionWarning:RangeError:Maximum call stack size exceeded at match (-/v ...

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

最新文章

  1. 三维重建【四】-------------------结构光 三维重建----论文调研
  2. pycharm中传入命令行参数
  3. JVM PrintGCDetails打印GC细节
  4. spring boot+mybatisplus集成后访问项目接口404
  5. web.xml 中的filter
  6. 给你一个K8S的“发行版”
  7. NOIP模拟测试30「return·one·magic」
  8. 数独基本规则_数独专题一:幼儿数独启蒙
  9. 谷歌紧急修复已遭利用的新 0day
  10. 性能测试(一)性能测试是什么?有哪些分类?
  11. Qt: 非阻塞时间延迟;
  12. oracle的档案软件,思源档案管理系统(WEB版)
  13. 2021-07-02
  14. thinkphp5 in_array函数 不区分大小写的实现
  15. [bugbank]看Fuzz与漏洞擦出火花
  16. JavaScript验证 IP/域名格式
  17. 阿里云服务器租用价格最新收费标准(2019实时更新)
  18. 增量式编码器 绝对值编码器
  19. OSChina 愚人节乱弹 —— 开个小电影专栏放一天
  20. nyoj-891-找点

热门文章

  1. HIve学习:Hive分区修改
  2. SpringMVC学习——对于SpringMVC的整体认识
  3. 中国十大名画,你知道几幅?(附高清全图)
  4. vue el-checkbox循环多个如何选中当前的_一次关于Vue的自我模拟面试
  5. QT udp自动获取对方ip和端口号
  6. 乐视html5,乐视杨永强:Letv Store为HTML5开发者带来新机遇
  7. 京东 你访问的页面需要验证证书_中级会计“新”证书来了
  8. jquery设置表单元素只读_jquery设置元素readonly与disabled属性
  9. mysql防注入原理_MyBatis如何防止SQL注入
  10. c语言与硬件连接案例,实际LED硬件连接