Home > Back-end >  Perhaps you are running on a JRE rather than a JDK?
Perhaps you are running on a JRE rather than a JDK?

Time:06-23

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:

enter image description here

can someone help me to resolve the issue? Path pointing to my JDK is below : enter image description here

CodePudding user response:

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.

CodePudding user response:

that openjdk folder was not actual jdk, i installed jdk online, and pointed eclipse to the installed one It worked

  • Related