No compiler is provided in the Environment? Perhaps you are running on a JRE rather than a JDK?

Sometimes when you are running Maven from command line or from Maven in AzureDevOps you may get an error like say

No compiler is provided in the Environment? Perhaps you are running on a JRE rather than a JDK?

Though Java is installed on the System and you have set the Paths you will continue to get this as newer version of Java change the order of environment variables on Windows

So verify whether Path variables and see whether you have something like

C:\Program Files (x86)\Common Files\Oracle\Java\javapath

If the answer is yes, then change the Path variable and set to something like ”
C:\Program Files\Java\jdk1.8.0_162\bin “

You may also like...

5 Responses

  1. November 18, 2020

    … [Trackback]

    […] Find More Information here on that Topic: azuredevopsguide.com/no-compiler-is-provided-in-the-environment-perhaps-you-are-running-on-a-jre-rather-than-a-jdk/ […]

  2. November 26, 2020

    … [Trackback]

    […] Here you will find 71297 additional Information to that Topic: azuredevopsguide.com/no-compiler-is-provided-in-the-environment-perhaps-you-are-running-on-a-jre-rather-than-a-jdk/ […]

  3. November 26, 2020

    … [Trackback]

    […] Read More on that Topic: azuredevopsguide.com/no-compiler-is-provided-in-the-environment-perhaps-you-are-running-on-a-jre-rather-than-a-jdk/ […]

  4. November 27, 2020

    … [Trackback]

    […] There you will find 80394 additional Info on that Topic: azuredevopsguide.com/no-compiler-is-provided-in-the-environment-perhaps-you-are-running-on-a-jre-rather-than-a-jdk/ […]

  5. November 29, 2020

    … [Trackback]

    […] Info to that Topic: azuredevopsguide.com/no-compiler-is-provided-in-the-environment-perhaps-you-are-running-on-a-jre-rather-than-a-jdk/ […]