spring-boot 生成可执行jar报错:No compiler is provided in this environment
来源:互联网 发布:matlab 矩阵添加行 编辑:程序博客网 时间:2024/05/29 18:04
jdk的环境变量,maven的环境变量,eclipse里的jdk配置都正常了,但是使用spring-boot 生成可执行jar包时仍然报错: No compiler is provided in this environment . Perhaps you are running on a jre rather than a JDK?
我是这么解决的:pom中加配置maven-compiler-plugin并指定jdk路径
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> <fork>true</fork> <executable>D:\zongzhimin\Java\jdk1.8.0_144\bin\javac</executable> </configuration> </plugin> </plugins></build>
mvn clean package 打包
target目录下生成可执行jar
java -jar 加包名 执行
希望你也只是这个问题引起的。
阅读全文
0 0
- spring-boot 生成可执行jar报错:No compiler is provided in this environment
- maven报no compiler is provided in this environment解决方法
- No compiler is provided in this environment:
- No compiler is provided in this environment
- maven install 报错 No compiler is provided in this environment
- Maven 之 No compiler is provided in this environment
- Maven Problem: No compiler is provided in this environment
- maven build启动服务报错No compiler is provided in this environment. Perhaps you are running on a JRE
- centos下maven编译 mvn package 报错:No compiler is provided in this environment. Perhaps you are running
- maven编译报No compiler is provided in this environment. Perhaps you are running on a JRE rather than a
- No compiler is provided in this environment. Perhaps you are running on a JRE
- 【maven】No compiler is provided in this environment. Perhaps you are running on a JRE
- No compiler is provided in this environment. Perhaps you are running on a JRK
- 关于Maven项目build时出现No compiler is provided in this environment的处理
- Maven —— 错误:No compiler is provided in this environment.
- No compiler is provided in this environment. Perhaps you are running on a JR
- Maven Error:No compiler is provided in this environment的解决办法
- eclipse将Maven项目打包 war包报错No compiler is provided in this environment解决办法
- 把数组排成最小的数
- 实现wpf listview listbox 隔行变色的简单方法
- spring中的AOP编程思想详解
- linux用户和组管理
- UDP MediaPlayer 组播 地址
- spring-boot 生成可执行jar报错:No compiler is provided in this environment
- JavaScript学习——面向对象的程序设计(一)
- maven自动创建项目:mvn archetype:generate
- mysqldump参数详细说明
- 递归在阶乘上的应用
- Sign签名生成与校验
- 算法导论
- 调用函数的一维数组形成二维数组
- java-rabbitmq-交换机介绍