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 “
10 Responses
… [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/ […]
… [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/ […]
… [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/ […]
… [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/ […]
… [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/ […]
… [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/ […]
… [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/ […]
… [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/ […]
… [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/ […]
… [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/ […]