No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?


#1

As the title suggests, I’m trying to build my plugin with maven but console spits out this issue:

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

Thanks for your help :slight_smile:

(P.S. I’ve probably done something really stupid!)


#2

Do you have the JDK installed and linked to your IDE? Or is it only the JRE?
(Error messages mean something!)


#3

Perhaps he is running on a JRE rather than a JDK


#4

Maven can be annoying to setup, make sure you have the JDK installed.

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Otherwise start investing your path and environment variables.

If you are on windows,

https://www.mkyong.com/maven/how-to-install-maven-in-windows/


#5

Sorry. I forgot to say I was developing on Eclipse.

Anyway, I fixed the issue, I had to go to my “Run Configurations” and change the “Runtime JRE” as it was set as a JRE and not a JDK.

Thanks for your help!