[英]Perhaps you are running on a JRE rather than a JDK?
I am trying to build my project but facing the following error:我正在尝试构建我的项目,但遇到以下错误:
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
I have checked my windows-->Prefrences--> Installed JRE path, that points to open jdk only as below:我检查了我的 windows--> Prefrences--> Installed JRE path,它指向打开 jdk,如下所示:
can someone help me to resolve the issue?有人可以帮我解决这个问题吗? Path pointing to my JDK is below :
指向我的 JDK 的路径如下:
A JDK is required with Maven, not a JRE. Maven 需要 JDK,而不是 JRE。 So you have to ensure that JAVA_HOME environment variable points to a JDK to make Maven work.
因此,您必须确保 JAVA_HOME 环境变量指向 JDK 才能使 Maven 工作。
那个openjdk文件夹不是真正的jdk,我在线安装了jdk,并将eclipse指向安装的那个它工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.