简体   繁体   中英

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:

在此处输入图像描述

can someone help me to resolve the issue? Path pointing to my JDK is below : 在此处输入图像描述

A JDK is required with Maven, not a JRE. So you have to ensure that JAVA_HOME environment variable points to a JDK to make Maven work.

那个openjdk文件夹不是真正的jdk,我在线安装了jdk,并将eclipse指向安装的那个它工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM