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...

10 Responses

  1. December 12, 2020

    … [Trackback]

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

  2. December 22, 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/ […]

  3. December 23, 2020

    … [Trackback]

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

  4. December 23, 2020

    … [Trackback]

    […] Here you will find 80987 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/ […]

  5. December 25, 2020

    … [Trackback]

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

  6. January 5, 2021

    … [Trackback]

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

  7. January 12, 2021

    … [Trackback]

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

  8. January 16, 2021

    … [Trackback]

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

  9. January 17, 2021

    … [Trackback]

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

  10. January 22, 2021

    … [Trackback]

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